generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (88 loc) · 2.29 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3.1'
services:
redis:
image: 'redis:6.2'
networks:
- hmpps
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
depends_on:
- nomis-user-roles-api
networks:
- hmpps
container_name: hmpps-auth
ports:
- "9090:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SPRING_PROFILES_ACTIVE=dev,nomis
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
- NOMIS_ENDPOINT_URL=http://nomis-user-roles-api:8081
prison-api:
image: quay.io/hmpps/prison-api:latest
container_name: prison-api
networks:
- hmpps
depends_on:
- hmpps-auth
ports:
- '8082:8080'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
nomis-user-roles-api:
image: quay.io/hmpps/nomis-user-roles-api:latest
container_name: nomis-user-roles-api
networks:
- hmpps
ports:
- "8081:8081"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health/ping"]
environment:
- SERVER_PORT=8081
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://hmpps-auth:8080/auth
dps-homepage:
image: quay.io/hmpps/digital-prison-services:latest
networks:
- hmpps
ports:
- '3002:3002'
depends_on:
- hmpps-auth
- prison-api
- redis
environment:
- UPDATE_ATTENDANCE_PRISONS='HLI,MDI,LEI'
- OAUTH_ENDPOINT_URL=http://hmpps-auth:8080/auth/
- OAUTH_ENDPOINT_UI_URL=http://localhost:9090/auth/
- API_ENDPOINT_URL=http://prison-api:8080/
- REDIS_HOST=redis
- PORT=3002
app:
build: .
networks:
- hmpps
depends_on: [redis]
ports:
- "3000:3000"
environment:
- REDIS_HOST=redis
- SESSION_SECRET=session-secret
- HMPPS_AUTH_EXTERNAL_URL=http://localhost:9090/auth
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
- API_CLIENT_ID=client-id
- API_CLIENT_SECRET=client-secret
- SYSTEM_CLIENT_ID=system-client-id
- SYSTEM_CLIENT_SECRET=system-client-secret
networks:
hmpps: