This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
129 lines (129 loc) · 4.07 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3'
services:
pgadmin-ppdd:
image: dpage/pgadmin4
volumes:
- pgadmin_volume:/root/.pgadmin
ports:
- "8101:80"
restart: unless-stopped
depends_on:
- postgres-ppdd
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
postgres-ppdd:
image: postgres:11.5
restart: always
ports:
- "8102:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
edus:
build:
context: ./
dockerfile: ./services/edus/Dockerfile
depends_on:
- postgres-ppdd
ports:
- "8103:8080"
environment:
SPRING_PROFILES_ACTIVE: debug, disable-ssl-client-postgres, generate-otp
POSTGRESQL_DATABASE: ${POSTGRES_DB}
POSTGRESQL_USER_EDUS: ${POSTGRES_USER}
POSTGRESQL_PASSWORD_EDUS: ${POSTGRES_PASSWORD}
POSTGRESQL_SERVICE_PORT: '5432'
POSTGRESQL_SERVICE_HOST: postgres-ppdd
SSL_EDUS_KEYSTORE_PATH: file:/secrets/cwa_data_ppac.jks
SSL_EDUS_KEYSTORE_PASSWORD: 123456
SSL_EDUS_TRUSTSTORE_PATH: file:/secrets/truststore.jks
SSL_EDUS_TRUSTSTORE_PASSWORD: 123456
volumes:
- ./secrets:/secrets
els-verify:
build:
context: ./
dockerfile: ./services/els-verify/Dockerfile
depends_on:
- postgres-ppdd
ports:
- "8106:8080"
environment:
SPRING_PROFILES_ACTIVE: debug, disable-ssl-client-postgres, generate-els-otp
POSTGRESQL_DATABASE: ${POSTGRES_DB}
POSTGRESQL_USER_ELS: ${POSTGRES_USER}
POSTGRESQL_PASSWORD_ELS: ${POSTGRES_PASSWORD}
POSTGRESQL_SERVICE_PORT: '5432'
POSTGRESQL_SERVICE_HOST: postgres-ppdd
SSL_ELS_KEYSTORE_PATH: file:/secrets/cwa_data_ppac.jks
SSL_ELS_KEYSTORE_PASSWORD: 123456
SSL_ELS_TRUSTSTORE_PATH: file:/secrets/truststore.jks
SSL_ELS_TRUSTSTORE_PASSWORD: 123456
volumes:
- ./secrets:/secrets
srs-verify:
build:
context: ./
dockerfile: ./services/srs-verify/Dockerfile
depends_on:
- postgres-ppdd
ports:
- "8105:8080"
environment:
SPRING_PROFILES_ACTIVE: debug, disable-ssl-client-postgres, generate-srs-otp
POSTGRESQL_DATABASE: ${POSTGRES_DB}
POSTGRESQL_USER_ELS: ${POSTGRES_USER}
POSTGRESQL_PASSWORD_ELS: ${POSTGRES_PASSWORD}
POSTGRESQL_SERVICE_PORT: '5432'
POSTGRESQL_SERVICE_HOST: postgres-ppdd
SSL_SRS_KEYSTORE_PATH: file:/secrets/cwa_data_ppac.jks
SSL_SRS_KEYSTORE_PASSWORD: 123456
SSL_SRS_TRUSTSTORE_PATH: file:/secrets/truststore.jks
SSL_SRS_TRUSTSTORE_PASSWORD: 123456
volumes:
- ./secrets:/secrets
ppac:
build:
context: ./
dockerfile: ./services/ppac/Dockerfile
depends_on:
- postgres-ppdd
ports:
- "8104:8080"
environment:
SPRING_PROFILES_ACTIVE: debug, disable-ssl-client-postgres
POSTGRESQL_DATABASE: ${POSTGRES_DB}
POSTGRESQL_USER_PPAC: ${POSTGRES_USER}
POSTGRESQL_PASSWORD_PPAC: ${POSTGRES_PASSWORD}
POSTGRESQL_SERVICE_PORT: '5432'
POSTGRESQL_SERVICE_HOST: postgres-ppdd
SSL_DATA_KEYSTORE_PATH: file:/secrets/cwa_data_ppac.jks
SSL_DATA_KEYSTORE_PASSWORD: 123456
volumes:
- ./secrets:/secrets
retention:
build:
context: ./
dockerfile: ./services/retention/Dockerfile
depends_on:
- postgres-ppdd
environment:
SPRING_PROFILES_ACTIVE: debug, disable-ssl-client-postgres
POSTGRESQL_DATABASE: ${POSTGRES_DB}
POSTGRESQL_USER_RETENTION: ${POSTGRES_USER}
POSTGRESQL_PASSWORD_RETENTION: ${POSTGRES_PASSWORD}
POSTGRESQL_SERVICE_PORT: '5432'
POSTGRESQL_SERVICE_HOST: postgres-ppdd
EXPOSURE_RISK_METADATA_RETENTION_DAYS: 1
EXPOSURE_WINDOW_RETENTION_DAYS: 1
KEY_METADATA_WITH_CLIENT_RETENTION_DAYS: 1
KEY_METADATA_WITH_USER_RETENTION_DAYS: 1
TEST_RESULT_METADATA_RETENTION_DAYS: 1
API_TOKEN_RETENTION_DAYS: 1
DEVICE_TOKEN_RETENTION_DAYS: 1
OTP_RETENTION_HOURS: 1
SALT_RETENTION_DAYS: 1
volumes:
pgadmin_volume: