forked from JobDoesburg/yivi-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (87 loc) · 2.28 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
90
91
92
services:
yivi:
container_name: yivi-portal-yivi
image: ghcr.io/privacybydesign/irma:edge
command: >
server -v --no-email --no-tls --url ${YIVI_SERVER_URL:-http://localhost:8080} --port 8080
restart: unless-stopped
networks:
- web
ports:
- 8080:8080
environment:
YIVI_SERVER_TOKEN: ${YIVI_SERVER_TOKEN}
database:
image: postgres:13.3-alpine
container_name: yivi-portal-db
restart: unless-stopped
networks:
- db
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
healthcheck:
test: ['CMD', 'pg_isready', '-U', '${POSTGRES_USER:-postgres}']
interval: 10s
timeout: 5s
retries: 5
yivi-portal:
container_name: yivi-portal
build:
context: .
restart: unless-stopped
command: /bin/sh /app/entrypoint_dev.sh
networks:
- web
- db
ports:
- 8000:8000
depends_on:
- database
- yivi
volumes:
- .:/app
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_HOST: database
POSTGRES_PORT: 5432
YIVI_SERVER_URL: ${YIVI_SERVER_URL:-http://yivi:8080}
YIVI_SERVER_TOKEN: ${YIVI_SERVER_TOKEN}
DJANGO_SETTINGS_MODULE: yivi_portal.settings.development
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-localhost}
healthcheck:
test: ['CMD', 'python', 'manage.py', 'check']
interval: 60s
timeout: 20s
retries: 3
yivi-portal-cron:
container_name: yivi-portal-cron
build:
context: .
entrypoint: ['/bin/sh', '/app/entrypoint_cron.sh']
restart: unless-stopped
networks:
- web
- db
depends_on:
- database
- yivi
volumes:
- .:/app
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_HOST: database
POSTGRES_PORT: 5432
DJANGO_SETTINGS_MODULE: yivi_portal.settings.development
networks:
web:
db:
volumes:
postgres-data: