-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
82 lines (77 loc) · 2.12 KB
/
docker-compose.yaml
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
version: "3"
services:
offender-case-notes:
image: quay.io/hmpps/offender-case-notes:latest
networks:
- hmpps
container_name: offender-case-notes
depends_on:
- offender-case-notes-db
- localstack
ports:
- "8083:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_DATASOURCE_URL=jdbc:postgresql://offender-case-notes-db/offender-case-notes
- SPRING_DATASOURCE_USERNAME=offender-case-notes
- SPRING_DATASOURCE_PASSWORD=offender-case-notes
- ELITE2_API_BASE_URL=http://elite2-api:8080
- OAUTH_API_BASE_URL=http://oauth:8080/auth
- SPRING_PROFILES_ACTIVE=stdout,localstack
- SQS_ENDPOINT_URL=http://localstack:4566
elite2-api:
image: quay.io/hmpps/prison-api:latest
networks:
- hmpps
container_name: elite2-api
depends_on:
- oauth
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
oauth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: oauth
ports:
- "9090:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
offender-case-notes-db:
image: postgres:15
networks:
- hmpps
container_name: offender-case-notes-db
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=offender-case-notes
- POSTGRES_USER=offender-case-notes
- POSTGRES_DB=offender-case-notes
localstack:
image: localstack/localstack:3.0
networks:
- hmpps
container_name: localstack
ports:
- "4566-4597:4566-4597"
environment:
- SERVICES=sqs,sns
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
hmpps: