-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (42 loc) · 1.41 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
37
38
39
40
41
42
43
44
45
46
version: '3'
services:
app:
build:
context: docker/app
dockerfile: Dockerfile
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
env_file:
- ./docker/app/.env
volumes:
- '.:/var/www/html/:delegated'
app_xdebug:
build:
context: docker/app
dockerfile: Dockerfile_xdebug
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
env_file:
- ./docker/app/.env
volumes:
- '.:/var/www/html/:delegated'
nginx:
image: nginx
volumes:
- '.:/var/www/html/'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
- './docker/nginx/config/ssl.conf:/etc/nginx/config/ssl.conf'
- './docker/nginx/config/ssl-params.conf:/etc/nginx/config/ssl-params.conf'
- './docker/nginx/config/gzip.conf:/etc/nginx/config/gzip.conf'
- './docker/nginx/config/pki/dhparam.pem:/etc/nginx/pki/dhparam.pem'
- './docker/nginx/config/pki/insecure.crt:/etc/nginx/pki/certs/insecure.crt'
- './docker/nginx/config/pki/insecure.key:/etc/nginx/pki/private/insecure.key'
ports:
- '127.0.0.1:80:80'
- '127.0.0.1:443:443'
networks:
default:
external:
name: 'pxd-docker'