forked from crf-devs/resop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (81 loc) · 1.88 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.7"
services:
traefik:
image: traefik:1.7-alpine
ports:
- '7500:80'
- '7583:443'
labels:
- 'traefik.enable=true'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:traefik.vcap.me'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/traefik/traefik.toml:/etc/traefik/traefik.toml
- ./.cache/ssl:/etc/ssl:ro
wait:
image: martin/wait
postgres:
image: postgres:11.4-alpine
environment:
- POSTGRES_DB=resop
- POSTGRES_USER=resop
- POSTGRES_PASSWORD=postgrespwd
adminer:
image: adminer
environment:
- ADMINER_DEFAULT_SERVER=postgres
labels:
- 'traefik.enable=true'
- 'traefik.port=8080'
- 'traefik.frontend.rule=Host:adminer.vcap.me'
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
target: withoutsources
volumes:
- ./public:/srv/public:ro
depends_on:
- fpm
environment:
- "FPM_ENDPOINT=fpm:9001"
labels:
- 'traefik.enable=true'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:resop.vcap.me'
fpm:
build:
context: .
dockerfile: docker/php-flex/Dockerfile
target: withoutsources-fpm
volumes:
- ./:/srv
environment:
- APP_ENV=dev
- APP_DEBUG=1
tools:
build:
context: .
dockerfile: docker/php-flex/Dockerfile
target: withoutsources
init: true
volumes:
- ./:/srv
environment:
- APP_ENV=dev
- APP_DEBUG=1
ulimits:
nofile:
soft: "65536"
hard: "65536"
node:
image: node:13-alpine
init: true
working_dir: /srv
# command: yarn encore dev --watch # Uncomment and add the "node" service in "make start" in order to watch webpack updates
environment:
- NODE_SASS_PLATFORM=alpine
- NODE_ENV=dev
volumes:
- ./:/srv