generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (71 loc) · 1.92 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
version: "3"
services:
hmpps-electronic-monitoring-create-an-order-api:
build:
context: .
networks:
- hmpps
container_name: hmpps-electronic-monitoring-create-an-order-api
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ping"]
environment:
- SERVER_PORT=8080
- HMPPS_AUTH_URL=${HMPPS_AUTH_URL:-http://hmpps-auth:8080/auth}
- SPRING_PROFILES_ACTIVE=local
- SERCO_CLIENT_ID=${SERCO_CLIENT_ID:-dummy}
- SERCO_AUTH_URL=${SERCO_AUTH_URL:-dummy}
- SERCO_CLIENT_SECRET=${SERCO_CLIENT_SECRET:-dummy}
- SERCO_USERNAME=${SERCO_USERNAME:-dummy}
- SERCO_PASSWORD=${SERCO_PASSWORD:-dummy}
- SERCO_URL=${SERCO_URL:-dummy}
db:
container_name: cemo-db
image: postgres:latest
restart: always
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- '5432:5432'
networks:
- hmpps
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
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:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
localstack:
image: localstack/localstack:3.0
container_name: localstack
networks:
- hmpps
ports:
- 4566:4566
volumes:
- './localstack:/var/lib/localstack'
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- SERVICES=sqs
- DEFAULT_REGION=eu-west-2
healthcheck:
test: 'curl localhost:4566/_localstack/init | grep -q ''"READY": true'''
interval: 60s
timeout: 2s
retries: 10
networks:
hmpps: