generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local-wiremock.yml
72 lines (66 loc) · 1.7 KB
/
docker-compose-local-wiremock.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
version: '3.1'
services:
redis:
image: 'redis:6.2'
networks:
- hmpps
ports:
- '6379:6379'
wiremock:
image: wiremock/wiremock
networks:
- hmpps
container_name: wiremock
restart: always
ports:
- "9091:8080"
volumes:
- ./local-wiremock/mappings/:/./home/wiremock/mappings/
command:
- -verbose
- -global-response-templating
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
depends_on:
- nomis-user-roles-api
networks:
- hmpps
container_name: hmpps-auth
ports:
- "9090:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SPRING_PROFILES_ACTIVE=dev,nomis
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
- NOMIS_ENDPOINT_URL=http://nomis-user-roles-api:8081
nomis-user-roles-api:
image: quay.io/hmpps/nomis-user-roles-api:latest
container_name: nomis-user-roles-api
networks:
- hmpps
ports:
- "8081:8081"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health/ping"]
environment:
- SERVER_PORT=8081
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://hmpps-auth:8080/auth
prison-api:
image: quay.io/hmpps/prison-api:latest
container_name: prison-api
networks:
- hmpps
depends_on:
- hmpps-auth
ports:
- '8080:8080'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
environment:
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI=http://hmpps-auth:8080/auth/.well-known/jwks.json
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
networks:
hmpps: