-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.test.yml
48 lines (48 loc) · 1.2 KB
/
docker-compose.test.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
version: "3.9"
services:
mainnetwork:
image: alpine:3.14
command: ["tail", "-f", "/dev/null"]
db:
image: postgres:14-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/backend
command: ["./start.sh"]
volumes:
- ./:/app:delegated
- ./i18n:/app/i18n:delegated
- ./storage:/app/storage:delegated
environment:
- DB_SCHEMA=partos_pat
- DB_USER=akvo
- DB_PASSWORD=password
- DB_HOST=db
- DEBUG=True
- SECRET_KEY=secret
# env vars for coveralls
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN:-}
- MAILJET_APIKEY=$MAILJET_APIKEY
- MAILJET_SECRET=$MAILJET_SECRET
- WEBDOMAIN=notset
depends_on:
- db
frontend:
image: akvo/akvo-node-18-alpine:20230831.105309.b9593b7
command: ["./start.sh"]
volumes:
- ./frontend:/app:delegated
- ./i18n:/app/i18n:delegated
working_dir: /app
depends_on:
- backend
volumes:
pg-data: