generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
147 lines (135 loc) · 4.26 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
version: "3.9"
services:
hmpps-integration-api:
build:
context: .
container_name: hmpps-integration-api
ports:
- "8080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/ping" ]
depends_on:
prison-api:
condition: service_healthy
prisoner-search:
condition: service_healthy
probation-offender-search:
condition: service_healthy
probation-integration-epf-api:
condition: service_healthy
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=local-docker
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=TRACE
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
container_name: hmpps-auth
ports:
- "9090:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/auth/health" ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=TRACE
ndelius-api:
build:
context: .
dockerfile: Dockerfile.setup-ndelius-api
container_name: ndelius-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://127.0.0.1:4010/case/abc/supervisions -O /dev/null'
ports:
- '4040:4010'
prison-api:
build:
context: .
dockerfile: Dockerfile.setup-prison-api
container_name: prison-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://127.0.0.1:4010/api/offenders/A1234AL -O /dev/null'
ports:
- '4030:4010'
prisoner-search:
build:
context: .
dockerfile: Dockerfile.setup-prisoner-search
container_name: prisoner-search
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://127.0.0.1:4010/prisoner/A1234AL -O /dev/null'
ports:
- "4010:4010"
probation-offender-search:
build:
context: .
dockerfile: Dockerfile.setup-probation-offender-search
container_name: probation-offender-search
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/synthetic-monitor -O /dev/null'
ports:
- '4020:4010'
assess-risks-and-needs-api:
build:
context: .
dockerfile: Dockerfile.setup-assess-risks-and-needs-api
container_name: assess-risks-and-needs-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/risks/crn/abc/predictors/all -O /dev/null'
ports:
- '4050:4010'
probation-integration-epf-api:
build:
context: .
dockerfile: Dockerfile.setup-probation-integration-epf-api
container_name: probation-integration-epf-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/case-details/crn/1234 -O /dev/null'
ports:
- '4060:4010'
adjudications-api:
build:
context: .
dockerfile: Dockerfile.adjudications-api
container_name: adjudications-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/reported-adjudications/prisoner/123 -O /dev/null'
ports:
- '4045:4010'
create-and-vary-licence-api:
build:
context: .
dockerfile: Dockerfile.setup-create-and-vary-a-licence-api
container_name: create-and-vary-licence-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/public/licences/id/abc -O /dev/null'
ports:
- '4070:4010'
case-notes-api:
build:
context: .
dockerfile: Dockerfile.setup-case-notes-api
container_name: case-notes-api
healthcheck:
test: 'wget --header="Authorization: Bearer abc" http://0.0.0.0:4010/case-notes/1234 -O /dev/null'
ports:
- '4080:4010'
local-stack-aws:
image: localstack/localstack:3.0
container_name: local-stack-aws
ports:
- "4566:4566"
environment:
- SERVICES=sns,sqs
- DEBUG=${DEBUG- }
- DATA_DIR=${DATA_DIR- }
- PORT_WEB_UI=${PORT_WEB_UI- }
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- AWS_EXECUTION_ENV=True
- DEFAULT_REGION=eu-west-2
volumes:
- './localstack:/var/lib/localstack'
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
hmpps: