generated from CurlyBytes/gitblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (31 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
###############################################################################
# Generated on phpdocker.io #
###############################################################################
---
version: "3.1"
services:
webserver:
image: 'nginx:${NGINXVERSION}'
container_name: ${APPNAME}_webserver
working_dir: /application
volumes:
- '.:/application'
- './scripts/phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
- ./app/logs/nginx:/var/logs/nginx
ports:
- '${WEBSERVERPORT}:80'
php-fpm:
container_name: ${APPNAME}_php
build: scripts/phpdocker/php-fpm
working_dir: /application
volumes:
- '.:/application'
- './scripts/phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini'
environment:
PHP_IDE_CONFIG: "serverName=Docker"
web:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./_site:/usr/share/nginx/html