-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
109 lines (102 loc) · 2.89 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
version: "3"
services:
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
- SPRING_JPA_PROPERTIES_HIBERNATE_SHOW_SQL=false
- SPRING_H2_CONSOLE_SETTINGS_WEBALLOWOTHERS=true
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-db:5432/auth-db
hmpps-manage-users:
image: quay.io/hmpps/hmpps-manage-users-api:latest
networks:
- hmpps
container_name: hmpps-manage-users
depends_on:
- hmpps-auth
- 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
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
assess-risks-and-needs:
image: quay.io/hmpps/hmpps-assess-risks-and-needs:latest
networks:
- hmpps
container_name: assess-risks-and-needs
ports:
- "8094:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- OAUTH_ENDPOINT_URL=http://hmpps-auth:8090/auth
postgres:
image: postgres:16
container_name: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
volumes:
- ./src/main/resources/db/local/init:/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:3.9.1
networks:
- hmpps
restart: always
ports:
- "9092:8080"
volumes:
- ./wiremock_mappings:/home/wiremock/mappings
command: '--verbose'
networks:
hmpps: