-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.15 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
47
48
49
50
51
52
53
54
version: '3.7'
services:
symfony:
image: cocoders/phpers-summit-2019-symfony
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/var/www/beer/key/key.json
- VIRTUAL_HOST=beer.local
- VIRTUAL_PORT=8000
expose:
- "8000"
volumes:
- ./symfony/:/var/www/beer
networks:
- default
- nginx-proxy
command: >
bash -c "symfony composer install && symfony server:start"
angular:
image: cocoders/phpers-summit-2019-angular
volumes:
- ./angular/:/var/www/beer
networks:
- default
- nginx-proxy
expose:
- "4200"
environment:
- VIRTUAL_HOST=frontend.beer.local
- VIRTUAL_PORT=4200
command: >
bash -c "npm install && ng serve --host 0.0.0.0 --port 4200 --disable-host-check --public-host=frontend.beer.local"
nginx-proxy:
image: jwilder/nginx-proxy:alpine
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- default
- nginx-proxy
whoami:
image: jwilder/whoami
networks:
- default
- nginx-proxy
networks:
nginx-proxy:
external:
name: nginx-proxy