generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-scenarios.yml
76 lines (67 loc) · 1.74 KB
/
docker-compose-scenarios.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
services:
cemo-api:
container_name: cemo-api
image: quay.io/hmpps/hmpps-electronic-monitoring-create-an-order-api:latest
networks:
- hmpps_integration
ports:
- '8080:8080'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health/ping']
depends_on:
cemo-db:
condition: service_healthy
restart: true
cemo-redis:
condition: service_started
environment:
- SERVER_PORT=8080
- DB_SERVER=cemo-db
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- HMPPS_AUTH_URL=http://cemo-wiremock:8080/auth
- CLIENT_ID=clientid
- CLIENT_SECRET=clientsecret
- DOCUMENT_MANAGEMENT_URL=http://cemo-wiremock:8080/hmpps
- SERCO_AUTH_URL=http://cemo-wiremock:8080/auth/oauth/token
- SERCO_CLIENT_ID=clientid
- SERCO_CLIENT_SECRET=clientsecret
- SERCO_USERNAME=serco
- SERCO_PASSWORD=serco
- SERCO_URL=http://cemo-wiremock:8080/fms
- CP_INTEGRATION_ENABLED=false
cemo-db:
container_name: cemo-db
image: postgres:14
restart: always
networks:
- hmpps_integration
ports:
- '5432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
cemo-redis:
container_name: cemo-redis
image: redis:7.2
networks:
- hmpps_integration
ports:
- '6379:6379'
cemo-wiremock:
container_name: cemo-wiremock
image: wiremock/wiremock:latest
restart: always
networks:
- hmpps_integration
ports:
- '9091:8080'
networks:
hmpps_integration: