forked from akvo/rtmis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.24 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
---
version: "3.9"
services:
backend:
image: python:3.8.5
working_dir: /app
command: ["./run.sh"]
volumes:
- ./backend:/app:delegated
environment:
- DB_SCHEMA=rtmis
- DB_USER=akvo
- DB_PASSWORD=password
- DB_HOST=db
- DEBUG=True
- DJANGO_SECRET=local-secret
- APK_UPLOAD_SECRET
- STORAGE_PATH
- SENTRY_DSN
depends_on:
- db
worker:
image: python:3.8.5
working_dir: /app
command: ["./run_worker.sh"]
volumes:
- ./backend:/app:delegated
environment:
- DB_SCHEMA=rtmis
- DB_USER=akvo
- DB_PASSWORD=password
- DB_HOST=db
- DEBUG=True
- DJANGO_SECRET=local-secret
- APK_UPLOAD_SECRET
- STORAGE_PATH
- SENTRY_DSN
depends_on:
- backend
frontend:
image: akvo/akvo-node-17-alpine:20220121.024749.f30b815
command: ["./start.sh"]
volumes:
- ./frontend:/app:delegated
working_dir: /app
depends_on:
- backend
db:
image: postgres:12-alpine
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
pg-data: