generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (89 loc) · 2.43 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
version: '3.1'
services:
postgres:
image: postgres:16
container_name: postgres
networks:
- hmpps
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev
volumes:
- ./testutils/docker/postgres:/docker-entrypoint-initdb.d:ro
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
ports:
- "9090:9090"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/auth/health"]
environment:
- SERVER_PORT=9090
- SPRING_PROFILES_ACTIVE=dev,delius,local-postgres,nomis
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-db:5432/auth-db
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
- NOMIS_ENDPOINT_URL=http://nomis-user-roles-api:8081
- DELIUS_ENABLED=true
- DELIUS_ENDPOINT_URL=http://wiremock:8080/delius
- DELIUS_ENDPOINT_TIMEOUT=1s
- DELIUS_CLIENT_CLIENT-ID=delius-auth-api-client
- DELIUS_CLIENT_CLIENT-SECRET=delius-auth-api-client
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
find-and-refer-interventions-service:
image: quay.io/hmpps/hmpps-find-and-refer-an-intervention-service
restart: always
networks:
- hmpps
container_name: find-and-refer-interventions-service
depends_on:
- postgres
ports:
- '8092:8080'
environment:
- SPRING_PROFILES_ACTIVE=local
- POSTGRES_URI=postgres:5432
nomis-user-roles-api:
image: quay.io/hmpps/nomis-user-roles-api:latest
container_name: nomis-user-roles-api
networks:
- hmpps
depends_on:
- hmpps-auth
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:9090/auth
- SPRING_FLYWAY_LOCATIONS=classpath:db/migration,classpath:db/dev,filesystem:/seed
wiremock:
image: wiremock/wiremock
networks:
- hmpps
restart: always
ports:
- "9092:8080"
volumes:
- ./wiremock_mappings:/home/wiremock/mappings
command: '--verbose'
networks:
hmpps: