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-swarm.yml
124 lines (113 loc) · 2.91 KB
/
docker-compose-swarm.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.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:
- dp3t_backend_db
backendws:
image: localhost:5000/dp3t-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
secrets:
- dp3t_backend_db
- dp3t_backend_private
- dp3t_backend_public
- dp3t_authtoken_public
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:
- dp3t_keycloak_db
keycloak:
image: localhost:5000/dp3t-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"
secrets:
- dp3t_keycloak_admin
- 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:
- dp3t_authcode_db
authcodews:
image: localhost:5000/dp3t-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
secrets:
- dp3t_authcode_db
- dp3t_authtoken_private
frontend:
image: localhost:5000/dp3t-frontend
volumes:
- frontend:/data
ports:
- "80:80"
- "443:443"
environment:
- TZ=WET
volumes:
backenddb:
keycloakdb:
authcodedb:
frontend:
secrets:
dp3t_keycloak_admin:
external: true
dp3t_authtoken_private:
external: true
dp3t_backend_private:
external: true
dp3t_authtoken_public:
external: true
dp3t_backend_public:
external: true
dp3t_authcode_db:
external: true
dp3t_keycloak_db:
external: true
dp3t_backend_db:
external: true