-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (67 loc) · 1.61 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
version: "3.9"
services:
mainnetwork:
image: alpine:3.14
command: ["tail", "-f", "/dev/null"]
db:
image: postgres:13-alpine
volumes:
- ./database/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pg-data:/var/lib/postgresql/data
- ./database/script:/script:ro
environment:
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
backend:
image: python:3.9
working_dir: /app
command: ["./start.sh"]
volumes:
- ./backend:/app:delegated
environment:
- DB_SCHEMA=eswatini
- DB_USER=akvo
- DB_PASSWORD=password
- DB_HOST=db
- DEBUG=True
- SECRET_KEY=secret
- GEONODE_BASE_URL
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN:-}
- MAILJET_APIKEY=$MAILJET_APIKEY
- MAILJET_SECRET=$MAILJET_SECRET
- WEBDOMAIN=$WEBDOMAIN
depends_on:
- db
frontend:
image: akvo/akvo-node-18-alpine:20230831.105309.b9593b7
command: ["./start.sh"]
volumes:
- ./frontend:/app:delegated
working_dir: /app
environment:
- WEBDOMAIN=${WEBDOMAIN}
- SESSION_SECRET=${SESSION_SECRET}
depends_on:
- backend
worker:
image: python:3.9
working_dir: /app
command: ["./run_worker.sh"]
volumes:
- ./backend:/app:delegated
environment:
- DB_SCHEMA=eswatini
- DB_USER=akvo
- DB_PASSWORD=password
- DB_HOST=db
- DEBUG=True
- SECRET_KEY=secret
- GEONODE_BASE_URL
- MAILJET_APIKEY=$MAILJET_APIKEY
- MAILJET_SECRET=$MAILJET_SECRET
- WEBDOMAIN=$WEBDOMAIN
depends_on:
- backend
volumes:
pg-data: