This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
106 lines (97 loc) · 3.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
services:
backenddb:
image: library/postgres:12.3
environment:
- POSTGRES_DB=dpppt
- POSTGRES_USER=dpppt
- POSTGRES_PASSWORD_FILE=/run/secrets/dp3t_backend_db
- TZ=WET
volumes:
- backenddb:/var/lib/postgresql/data
- ./secrets/backend_db.txt:/run/secrets/dp3t_backend_db
backendws:
image: localhost:5000/dp3t-backendws
build: backendws
environment:
- COUNTRY=CH
- DB_URL=jdbc:postgresql://backenddb:5432/dpppt
- DB_USER=dpppt
- DB_PASSWORD_FILE=/run/secrets/dp3t_backend_db
- BACKEND_PRIVATE_FILE=/run/secrets/dp3t_backend_private
- BACKEND_PUBLIC_FILE=/run/secrets/dp3t_backend_public
- JWTTOKEN_PUBLIC_FILE=/run/secrets/dp3t_authtoken_public
- TZ=WET
volumes:
- ./secrets/backend/private.pem:/run/secrets/dp3t_backend_private
- ./secrets/backend/pub.pem:/run/secrets/dp3t_backend_public
- ./secrets/authtoken/pub.pem:/run/secrets/dp3t_authtoken_public
- ./secrets/backend_db.txt:/run/secrets/dp3t_backend_db
keycloakdb:
image: library/postgres:12.3
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD_FILE=/run/secrets/dp3t_keycloak_db
- TZ=WET
volumes:
- keycloakdb:/var/lib/postgresql/data
- ./secrets/keycloak_db.txt:/run/secrets/dp3t_keycloak_db
keycloak:
image: localhost:5000/dp3t-keycloak
build: keycloak
environment:
- DB_VENDOR=postgres
- DB_ADDR=keycloakdb
- DB_DATABASE=keycloak
- DB_USER=keycloak
- DB_PASSWORD_FILE=/run/secrets/dp3t_keycloak_db
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD_FILE=/run/secrets/dp3t_keycloak_admin
- PROXY_ADDRESS_FORWARDING=true
- TZ=WET
# Uncomment the following lines for a test user:
#- BAG_USER=user
#- BAG_PASSWORD=secret
ports:
- "8180:8080"
volumes:
- ./secrets/keycloak_admin.txt:/run/secrets/dp3t_keycloak_admin
- ./secrets/keycloak_db.txt:/run/secrets/dp3t_keycloak_db
authcodedb:
image: library/postgres:12.3
environment:
- POSTGRES_DB=haauthcode
- POSTGRES_USER=haauthcode
- POSTGRES_PASSWORD_FILE=/run/secrets/dp3t_authcode_db
- TZ=WET
volumes:
- authcodedb:/var/lib/postgresql/data
- ./secrets/authcode_db.txt:/run/secrets/dp3t_authcode_db
authcodews:
image: localhost:5000/dp3t-authcodews
build: authcodews
environment:
- DB_URL=jdbc:postgresql://authcodedb:5432/haauthcode
- DB_USER=haauthcode
- DB_PASSWORD_FILE=/run/secrets/dp3t_authcode_db
- JWTTOKEN_PRIVATE_FILE=/run/secrets/dp3t_authtoken_private
- TZ=WET
volumes:
- ./secrets/authtoken/private.pem:/run/secrets/dp3t_authtoken_private
- ./secrets/authcode_db.txt:/run/secrets/dp3t_authcode_db
frontend:
image: localhost:5000/dp3t-frontend
build: frontend
volumes:
- frontend:/data
ports:
- "80:80"
- "443:443"
environment:
- TZ=WET
volumes:
backenddb:
keycloakdb:
authcodedb:
frontend: