generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (80 loc) · 2.46 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
version: "3"
services:
hmpps-manage-adjudications-api:
build: .
container_name: hmpps-manage-adjudications-api
networks:
- hmpps
ports:
- "8080:8080"
depends_on:
- hmpps-auth
- hmpps-manage-adjudications-api-db
healthcheck:
test: ["CMD", "wget", "--tries=1", "--spider", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- PRISON_API_ENDPOINT_URL=http://prison-api:8080
- OAUTH_ENDPOINT_URL=http://hmpps-auth:8080/auth
- SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI=http://hmpps-auth:8080/auth/.well-known/jwks.json
- SPRING_DATASOURCE_URL=jdbc:postgresql://hmpps-manage-adjudications-api-db:5432/adjudications
- SPRING_DATASOURCE_USERNAME=adjudications
- SPRING_DATASOURCE_PASSWORD=adjudications
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
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:8080
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:
- "8084:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://hmpps-auth:8080/auth
hmpps-manage-adjudications-api-db:
image: postgres
container_name: hmpps-manage-adjudications-api-db
restart: always
networks:
- hmpps
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=adjudications
- POSTGRES_USER=adjudications
- POSTGRES_DB=adjudications
localstack:
image: localstack/localstack:3.0
networks:
- hmpps
container_name: "${LOCALSTACK_DOCKER_NAME-localstack}"
ports:
- "4566:4566"
- "8999:8080"
environment:
- DEBUG=${DEBUG- }
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME=${LOCALSTACK_DOCKER_NAME-localstack}
- HOSTNAME_EXTERNAL=${LOCALSTACK_DOCKER_NAME-localstack}
volumes:
- "${TMPDIR:-/tmp/localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
hmpps: