-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.override.yaml
99 lines (92 loc) · 2.2 KB
/
docker-compose.override.yaml
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
90
91
92
93
94
95
96
97
98
99
x-web-common: &web-common
build:
context: .
dockerfile: Dockerfile-dev
entrypoint: scripts/docker/dev/run-as-user.sh
command: scripts/docker/dev/start-django.sh
services:
web:
<<: *web-common
expose:
- 8000
ports:
- "8082:8082" # snakeviz
depends_on:
- rsrdbhost
volumes:
- rsr-mediaroot:/var/akvo/rsr/mediaroot
worker:
<<: *web-common
environment:
IS_WORKER: "yes"
DJANGO_SECRET_KEY: secretkey
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage
healthcheck:
test: [ "CMD", "./scripts/probes/worker.sh" ]
interval: 5s
timeout: 10s
retries: 3
start_period: 30s
depends_on:
web:
condition: service_healthy
volumes:
- .:/var/akvo/rsr/code:delegated
- /var/akvo/rsr/code/src/
- ./scripts/docker/dev/50-docker-local-dev.conf:/config_overrides/50-docker-local-dev.conf
- rsr-mediaroot:/var/akvo/rsr/mediaroot
web-dir:
<<: *web-common
command: scripts/docker/dev/start-node-app.sh akvo/rsr/dir
depends_on:
- web
expose:
- 8081
ports:
- "127.0.0.1:8081:8081"
volumes:
- .:/var/akvo/rsr/code:delegated
- /var/akvo/rsr/code/src/
web-spa:
<<: *web-common
command: scripts/docker/dev/start-node-app.sh akvo/rsr/spa
depends_on:
- web
expose:
- 8080
ports:
- "127.0.0.1:8080:8080"
volumes:
- .:/var/akvo/rsr/code:delegated
- /var/akvo/rsr/code/src/
reports:
build:
context: .
dockerfile: Dockerfile-dev
volumes:
- .:/var/akvo/rsr/code:delegated
- ./scripts/docker/dev/50-docker-local-dev.conf:/config_overrides/50-docker-local-dev.conf
- /var/akvo/rsr/code/src/
environment:
- DJANGO_SECRET_KEY=secretkey
- IS_REPORTS_CONTAINER=yes
- DJANGO_PORT=9000
nginx:
image: nginx:1.17.9-alpine
depends_on:
- web-spa
- web-dir
- rsr-memcached
ports:
- "80:80"
volumes:
- ./scripts/docker/dev/nginx:/etc/nginx/conf.d
rsrdbhost:
ports:
- "5432:5432"
mailpit:
image: axllent/mailpit:v1.7
ports:
- 8025:8025
volumes:
rsr-mediaroot: {}