generated from ministryofjustice/hmpps-template-kotlin
/
docker-compose-e2e.yml
152 lines (142 loc) · 4.19 KB
/
docker-compose-e2e.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
148
149
150
151
152
version: '3.9'
services:
make-recall-decision-api:
build:
context: .
networks:
- hmpps
container_name: make-recall-decision-api
ports:
- "8080:8080"
- "8081:8081"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health/ping"]
environment:
- SERVER_PORT=8080
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth # auth comes from UI docker-compose
- OFFENDER_SEARCH_ENDPOINT_URL=http://fake-offender-search-api:8080
- DELIUS_INTEGRATION_ENDPOINT_URL=http://fake-delius-integration-api:8080
- CVL_API_ENDPOINT_URL=http://fake-cvl-api:8080
- DOCUMENT_MANAGEMENT_API_ENDPOINT_URL=http://fake-document-management-api:8080
- PPUD_AUTOMATION_API_ENDPOINT_URL=http://fake-ppud-automation-api:8080
- PRISON_API_ENDPOINT_URL=http://fake-prison-api:8080
- ARN_API_ENDPOINT_URL=http://fake-arn-api:8080
- GOTENBERG_ENDPOINT_URL=http://gotenberg:3000
- SYSTEM_CLIENT_ID=make-recall-decision-api
- SYSTEM_CLIENT_SECRET=clientsecret
- POSTGRES_HOST=postgres:5432
- POSTGRES_DBNAME=make_recall_decision
- POSTGRES_USERNAME=mrd_user
- POSTGRES_PASSWORD=secret
- SPRING_PROFILES_ACTIVE=dev
gotenberg:
image: gotenberg/gotenberg:8.0.3
networks:
- hmpps
container_name: gotenberg
ports:
- "9091:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
environment:
- LOG_LEVEL=DEBUG
postgres:
image: postgres:14-alpine
networks:
- hmpps
container_name: postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=mrd_user
- POSTGRES_DB=make_recall_decision
fake-offender-search-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-offender-search-api
ports:
- "9080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-offender-search-api:/home/wiremock
fake-document-management-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-document-management-api
ports:
- "9072:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-document-management-api:/home/wiremock
fake-delius-integration-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-delius-integration-api
ports:
- "9082:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
command: --verbose --local-response-templating
volumes:
- ./fake-delius-integration-api:/home/wiremock
fake-arn-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-arn-api
ports:
- "9071:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-arn-api:/home/wiremock
fake-cvl-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-cvl-api
ports:
- "9070:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-cvl-api:/home/wiremock
fake-ppud-automation-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-ppud-automation-api
ports:
- "9370:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-ppud-automation-api:/home/wiremock
fake-prison-api:
image: wiremock/wiremock
networks:
- hmpps
container_name: fake-prison-api
ports:
- "9270:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/ping" ]
command: --verbose --local-response-templating
volumes:
- ./fake-prison-api:/home/wiremock
networks:
hmpps:
name: hmpps