forked from ministryofjustice/visit-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (60 loc) · 1.56 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
version: "3.8"
services:
visit-scheduler:
build:
context: .
container_name: visit-scheduler
networks:
- hmpps
ports:
- "8080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
- PRISON_API_URL=http://prison-api:8080
- SYSTEM_CLIENT_ID=book-a-prison-visit-client
- SYSTEM_CLIENT_SECRET=clientsecret
- SPRING_DATASOURCE_URL=jdbc:postgresql://visit-scheduler-db:5432/visit_scheduler
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
ports:
- "8090: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:
- hmpps-auth
ports:
- "8091:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
visit-scheduler-db:
image: postgres:13.2
networks:
- hmpps
container_name: visit-scheduler-db
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=visit_scheduler
- POSTGRES_USER=visit_scheduler
- POSTGRES_DB=visit_scheduler
networks:
hmpps: