-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
78 lines (73 loc) · 1.85 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
75
76
77
78
version: '3.1'
services:
oauth-server:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: oauth-server
ports:
- "9090:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
prison-api:
image: quay.io/hmpps/prison-api:latest
networks:
- hmpps
container_name: prison-api
depends_on:
- oauth-server
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
keyworker-api:
image: quay.io/hmpps/keyworker-api:latest
networks:
- hmpps
depends_on:
- prison-api
- oauth-server
container_name: keyworker-api
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- PRISON_URI_ROOT=http://prison-api:8080
- AUTH_URI_ROOT=http://oauth-server:8080/auth
- SPRING_PROFILES_ACTIVE=localstack
- APP_DB_URL=jdbc:postgresql://localhost:5432/keyworker-api-db
- SPRING_DATASOURCE_USERNAME=admin
- SPRING_DATASOURCE_PASSWORD=admin_password
localstack:
image: localstack/localstack:3
networks:
- hmpps
container_name: localstack-kw
ports:
- "4566:4566"
environment:
- SERVICES=sqs
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
keyworker-api-db:
image: postgres
networks:
- hmpps
container_name: keyworker-api-db
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=admin_password
- POSTGRES_USER=admin
- POSTGRES_DB=keyworker-api-db
networks:
hmpps: