-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
193 lines (181 loc) · 5.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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
version: '3.1'
services:
redis:
image: 'bitnami/redis:6.2'
networks:
- hmpps
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
depends_on:
- auth-db
ports:
- '8090:8090'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8090/auth/health']
environment:
- SERVER_PORT=8090
- SPRING_PROFILES_ACTIVE=dev,delius,local-postgres
- DELIUS_ENDPOINT_URL=http://wiremock:8080/delius
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-db:5432/auth-db
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
hmpps-manage-users:
image: quay.io/hmpps/hmpps-manage-users-api:latest
networks:
- hmpps
container_name: hmpps-manage-users
depends_on:
- hmpps-auth
- nomis-user-roles-api
- hmpps-external-users-api
ports:
- "8096:8096"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8096/health" ]
environment:
- SERVER_PORT=8096
- HMPPS_AUTH_ENDPOINT_URL=http://hmpps-auth:8090/auth
- API_BASE_URL_OAUTH=http://hmpps-auth:8090/auth
- SPRING_PROFILES_ACTIVE=dev
- EXTERNAL_USERS_ENDPOINT_URL=http://hmpps-external-users-api:8098
- NOMIS_ENDPOINT_URL=http://nomis-user-roles-api:8097
- DELIUS_ENDPOINT_URL=http://wiremock:8080/delius
- AUTHORIZATION_SERVER_TOKEN_ENDPOINT_URL=http://hmpps-auth:8090/auth/oauth/token
nomis-user-roles-api:
image: quay.io/hmpps/nomis-user-roles-api:latest
networks:
- hmpps
container_name: nomis-user-roles-api
depends_on:
- hmpps-auth
ports:
- "8097:8097"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8097/health" ]
environment:
- SERVER_PORT=8097
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://hmpps-auth:8090/auth
hmpps-external-users-api:
image: quay.io/hmpps/hmpps-external-users-api:latest
networks:
- hmpps
container_name: hmpps-external-users-api
depends_on:
- auth-db
- hmpps-auth
ports:
- "8098:8098"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8098/health/ping"]
environment:
- SERVER_PORT=8098
- SPRING_PROFILES_ACTIVE=dev,local-postgres
- SPRING_R2DBC_URL=r2dbc:postgresql://auth-db:5432/auth-db?sslmode=verify-full
- SPRING_FLYWAY_URL=jdbc:postgresql://auth-db:5432/auth-db?sslmode=verify-full
- API_BASE_URL_OAUTH=http://hmpps-auth:8090/auth
community-api:
image: quay.io/hmpps/community-api:latest
networks:
- hmpps
container_name: community-api
ports:
- '8091:8080'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
interventions-service:
image: quay.io/hmpps/hmpps-interventions-service
restart: always
networks:
- hmpps
container_name: interventions-service
depends_on:
- postgres
ports:
- '8092:8080'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
environment:
- SPRING_PROFILES_ACTIVE=local,seed
- POSTGRES_URI=postgres:5432
- COMMUNITYAPI_BASEURL=http://community-api:8080
- ASSESSRISKSANDNEEDS_BASEURL=http://assess-risks-and-needs:8080
- REFERANDMONITORANDDELIUS_BASEURL=http://hmpps-interventions-ui-wiremock-1:8080
postgres:
image: postgres:14.12-alpine
container_name: postgres
networks:
- hmpps
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
volumes:
- ./testutils/docker/postgres:/docker-entrypoint-initdb.d:ro
auth-db:
image: postgres:15
networks:
- hmpps
container_name: auth-db
restart: always
ports:
- "5434:5432"
environment:
- POSTGRES_PASSWORD=admin_password
- POSTGRES_USER=admin
- POSTGRES_DB=auth-db
healthcheck:
test: pg_isready -d auth-db
wiremock:
image: wiremock/wiremock
networks:
- hmpps
restart: always
ports:
- "9092:8080"
volumes:
- ./wiremock_mappings:/home/wiremock/mappings
command: '--verbose'
assess-risks-and-needs:
image: quay.io/hmpps/hmpps-assess-risks-and-needs:latest
networks:
- hmpps
container_name: assess-risks-and-needs
restart: always
ports:
- "8094:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- OAUTH_ENDPOINT_URL=http://hmpps-auth:8090/auth
- ASSESSMENTAPI_BASEURL=http://offender-assessments-api:8080
- API_CLIENT_ID=interventions
- API_CLIENT_SECRET=clientsecret
- SPRING_PROFILES_ACTIVE=oasys-rsr,dev
offender-assessments-api:
image: quay.io/hmpps/offender-assessments-api:latest
networks:
- hmpps
container_name: offender-assessments-api
restart: always
ports:
- "8095:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
environment:
- SERVER_PORT=8080
- OAUTH_ENDPOINT_URL=http://hmpps-auth:8090/auth
- SPRING_PROFILES_ACTIVE=dev
networks:
hmpps: