-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
81 lines (75 loc) · 2.2 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
version: "3.7"
services:
c19-backend:
image: quay.io/opusvl/c19:dev
environment:
DJANGO_POSTGRES_USER: ${DJANGO_POSTGRES_USER}
DJANGO_POSTGRES_PASSWORD: ${DJANGO_POSTGRES_PASSWORD}
DJANGO_POSTGRES_DB: ${DJANGO_POSTGRES_DB}
C19_BACKEND_SECRET_KEY: ${C19_BACKEND_SECRET_KEY}
C19_API_EHRBASE_URL: http://ehrbase:8080
OIDC_RP_CLIENT_ID: ${OIDC_RP_CLIENT_ID}
OIDC_RP_CLIENT_SECRET: ${OIDC_RP_CLIENT_SECRET}
OIDC_RP_SIGN_ALGO: ${OIDC_RP_SIGN_ALGO}
OIDC_RP_IDP_SIGN_KEY: ${OIDC_RP_IDP_SIGN_KEY}
OIDC_OP_AUTHORIZATION_ENDPOINT: ${OIDC_OP_AUTHORIZATION_ENDPOINT}
OIDC_OP_TOKEN_ENDPOINT: ${OIDC_OP_TOKEN_ENDPOINT}
OIDC_OP_USER_ENDPOINT: ${OIDC_OP_USER_ENDPOINT}
C19_BACKEND_EHRBASE_URL: http://ehrbase:8080
C19_BACKEND_CORS_ORIGIN_WHITELIST: ${C19_BACKEND_CORS_ORIGIN_WHITELIST}
volumes:
- ./c19-backend:/app
ports:
- ${C19_BACKEND_PORT}:8000
depends_on:
- django_postgres
networks:
- django_net
- ehrbase_net
django_postgres:
image: postgres:12
environment:
POSTGRES_USER: ${DJANGO_POSTGRES_USER}
POSTGRES_PASSWORD: ${DJANGO_POSTGRES_PASSWORD}
networks:
- django_net
ehrdb:
image: ehrbaseorg/ehrbase-postgres:latest
volumes:
- "./postgres/:/var/lib/postgresql/data/:rw"
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${EHRBASE_DB}", "-U", "${EHRBASE_USER}"]
timeout: 45s
interval: 10s
retries: 10
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
EHRBASE_USER: ${EHRBASE_USER}
EHRBASE_PASSWORD: ${EHRBASE_PASSWORD}
networks:
- ehrbase_net
restart: always
ehrbase:
image: ehrbaseorg/ehrbase:next
environment:
DB_URL: ${DB_URL}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
SYSTEM_NAME: ${SYSTEM_NAME}
ports:
- "${EHRBASE_PORT}:8080"
networks:
- ehrbase_net
restart: always
testprovider:
stdin_open: true
tty: true
image: mozilla/oidc-testprovider:oidc_testprovider-latest
ports:
- "${TESTPROVIDER_PORT}:8080"
networks:
- django_net
networks:
django_net:
ehrbase_net: