-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-template.yml
57 lines (52 loc) · 1.08 KB
/
docker-compose-template.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
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
front1:
build:
context: images/nginx
restart: always
volumes:
- "./projects/$PROJECT/nginx:/etc/nginx/conf.d"
- ./$PROJECT:/var/www/html
varnish:
build:
context: images/varnish
restart: always
environment:
- VARNISH_PORT=6081
volumes:
- "./projects/$PROJECT/varnish/default.vcl:/etc/varnish/default.vcl"
back1:
build:
context: images/back
args:
user: $USER
env_file:
- ./projects/$PROJECT/vars.env
volumes:
- ./$PROJECT:/var/www/html
ports:
- $XDEBUG_PORT:9009
haproxy:
build:
context: images/haproxy
ports:
- $HAPROXY_PORT:443
front_dev:
build:
context: images/nginx
ports:
- $DEV_PORT:80
volumes:
- "./projects/$PROJECT/dev:/etc/nginx/conf.d"
- ./$PROJECT:/var/www/html
back_dev:
build:
context: images/back
args:
user: $USER
env_file:
- ./projects/$PROJECT/vars.dev.env
volumes:
- ./$PROJECT:/var/www/html
ports:
- $XDEBUG_DEV_PORT:9009