generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.34 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
version: "3"
services:
postgres:
image: postgres:16
networks:
- hmpps
container_name: hmpps-tier-postgres
restart: always
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=dev
- POSTGRES_USER=root
localstack:
image: localstack/localstack:3
networks:
- hmpps
container_name: hmpps-tier-localstack
ports:
- "4566:4566"
- 8999:8080
environment:
- SERVICES=sns,sqs
- DEBUG=${DEBUG- }
- DOCKER_HOST=unix:///var/run/docker.sock
- DEFAULT_REGION=eu-west-2
volumes:
- "${TMPDIR:-/tmp/localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
assessments-api:
image: quay.io/hmpps/offender-assessments-api:latest
networks:
- hmpps
container_name: assessments-api
ports:
- "8092:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
depends_on:
- oauth
oauth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: oauth
ports:
- "9090:9090"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9090/auth/health" ]
environment:
- SERVER_PORT=9090
- SPRING_PROFILES_ACTIVE=dev
networks:
hmpps: