generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
173 lines (165 loc) · 5.23 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
services:
redis:
image: redis:7.4
networks:
- hmpps
environment:
ALLOW_EMPTY_PASSWORD: yes
postgres:
image: postgres:16
networks:
- hmpps
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev
tmpfs:
- /var/lib/postgresql
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
healthcheck:
test: ["CMD", "curl", "-f", "http://hmpps-auth:9090/auth/health"]
interval: 5s
retries: 60
environment:
SERVER_PORT: 9090
SPRING_PROFILES_ACTIVE: dev
APPLICATION_AUTHENTICATION_UI_ALLOWLIST: 0.0.0.0/0
LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY: DEBUG
arns-handover:
image: ghcr.io/ministryofjustice/hmpps-assess-risks-and-needs-handover-service:latest
networks:
- hmpps
depends_on:
- redis
- coordinator-api
healthcheck:
test: ["CMD", "curl", "-f", "http://arns-handover:7070/health/ping"]
interval: 5s
retries: 60
environment:
SERVER_PORT: 7070
REDIS_HOST: redis
SPRING_PROFILES_ACTIVE: local
HMPPS_HANDOVER_BASE_URL: http://arns-handover:7070
HMPPS_HANDOVER_EXTERNAL_URL: http://localhost:7070
HMPPS_AUTH_BASE_URL: http://hmpps-auth:9090
COORDINATOR_API_BASE_URL: http://coordinator-api:8080
OASYS_BASE_URL: http://localhost:7072
OASYS_RETURN_URLS: http://localhost:7072
SERVER_ERROR_WHITELABEL_ENABLED: true
LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY: DEBUG
CLIENT_ID: hmpps-assess-risks-and-needs-oastub-ui
CLIENT_SECRET: clientsecret
CLIENT_SAN_SECRET: san-secret
CLIENT_SAN_OAUTH_REDIRECT_URI: http://localhost:3000/sign-in/callback
CLIENT_SAN_HANDOVER_REDIRECT_URI: http://localhost:3000/sign-in
oasys-ui:
image: ghcr.io/ministryofjustice/hmpps-assess-risks-and-needs-oastub-ui:latest
networks:
- hmpps
depends_on:
- redis
healthcheck:
test: ["CMD", "node", "/app/docker/healthcheck.js"]
interval: 5s
retries: 60
environment:
REDIS_ENABLED: "true"
SYSTEM_CLIENT_SECRET: clientsecret
SYSTEM_CLIENT_ID: hmpps-assess-risks-and-needs-oastub-ui
SESSION_SECRET: sessionsecret
REDIS_HOST: redis
INGRESS_URL: http://localhost:7072
HMPPS_AUTH_URL: http://hmpps-auth:9090/auth
TOKEN_VERIFICATION_ENABLED: "false"
TOKEN_VERIFICATION_API_URL: http://hmpps-auth:9091/verification
HMPPS_ARNS_HANDOVER_URL: http://arns-handover:7070
COORDINATOR_API_URL: "http://coordinator-api:8080"
ENVIRONMENT_NAME: DEV
AUDIT_ENABLED: "false"
PRODUCT_ID: FOO
volumes:
- ./docker/healthcheck.js:/app/docker/healthcheck.js
coordinator-api:
image: ghcr.io/ministryofjustice/hmpps-assess-risks-and-needs-coordinator-api:latest
networks:
- hmpps
depends_on:
- postgres
- hmpps-auth
healthcheck:
test: [ "CMD", "curl", "-f", "http://coordinator-api:8080/health/ping" ]
interval: 5s
retries: 60
environment:
SERVER_PORT: 8080
SPRING_PROFILES_ACTIVE: postgres
APP_DB_ENDPOINT: postgres:5432
APP_DB_NAME: postgres
APP_DB_USERNAME: root
APP_DB_PASSWORD: dev
HMPPS_AUTH_BASE_URL: http://hmpps-auth:9090/auth
SAN_API_BASE_URL: http://san-api:8080
SP_API_BASE_URL: http://sp-api:8080
CLIENT_ID: hmpps-assess-risks-and-needs-oastub-ui
CLIENT_SECRET: clientsecret
APP_STRATEGIES_PLAN: false
san-api:
image: quay.io/hmpps/hmpps-strengths-based-needs-assessments-api:latest
networks:
- hmpps
depends_on:
- postgres
- hmpps-auth
healthcheck:
test: ["CMD", "curl", "-f", "http://san-api:8080/health/ping"]
interval: 5s
retries: 60
environment:
SERVER_PORT: 8080
SPRING_PROFILES_ACTIVE: postgres
DATABASE_ENDPOINT: postgres:5432
OAUTH_ENDPOINT_URL: http://hmpps-auth:9090/auth
FORM_CONFIG_BASE_URL: http://san-ui:3000/config
san-ui:
image: ghcr.io/ministryofjustice/hmpps-strengths-based-needs-assessments-ui:${APP_VERSION:-latest}
build:
context: .
target: production
networks:
- hmpps
depends_on:
- redis
- hmpps-auth
- san-api
- arns-handover
- oasys-ui
healthcheck:
test: [ "CMD", "node", "./docker/healthcheck.js" ]
interval: 5s
retries: 60
environment:
PORT: 3000
REDIS_HOST: redis
HMPPS_AUTH_EXTERNAL_URL: http://localhost:9090/auth
HMPPS_AUTH_URL: http://hmpps-auth:9090/auth
HMPPS_ARNS_HANDOVER_URL: http://arns-handover:7070
HMPPS_ARNS_HANDOVER_EXTERNAL_URL: http://localhost:7070
OASYS_URL: http://localhost:7072
TOKEN_VERIFICATION_ENABLED: false
TOKEN_VERIFICATION_API_URL: http://hmpps-auth:9091/verification
API_CLIENT_SECRET: clientsecret
SYSTEM_CLIENT_SECRET: clientsecret
API_CLIENT_ID: hmpps-strengths-and-needs-ui
SYSTEM_CLIENT_ID: hmpps-assess-risks-and-needs-oastub-ui
HANDOVER_CLIENT_ID: strengths-and-needs-assessment
HANDOVER_CLIENT_SECRET: san-secret
SESSION_SECRET: sessionsecret
SBNA_API_URL: http://san-api:8080
INGRESS_URL: http://localhost:3000
HTTPS: false
NODE_ENV: development
networks:
hmpps: