generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
134 lines (127 loc) · 3.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
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
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: quay.io/hmpps/hmpps-assess-risks-and-needs-handover-service:latest
networks:
- hmpps
depends_on:
- redis
healthcheck:
test: ["CMD", "curl", "-f", "http://arns-handover:7070/health/ping"]
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
SERVER_ERROR_WHITELABEL_ENABLED: true
LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY: DEBUG
oasys-ui:
image: quay.io/hmpps/hmpps-assess-risks-and-needs-oastub-ui:latest
networks:
- hmpps
depends_on:
- redis
healthcheck:
test: ["CMD", "node", "/app/docker/healthcheck.js"]
environment:
REDIS_ENABLED: "true"
SYSTEM_CLIENT_SECRET: clientsecret
SYSTEM_CLIENT_ID: hmpps-strengths-and-needs-ui-client
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
SBNA_API_URL: "http://api:8080"
SP_API_URL: "http://¯\_(ツ)_/¯"
ENVIRONMENT_NAME: DEV
AUDIT_ENABLED: "false"
PRODUCT_ID: FOO
volumes:
- ./docker/healthcheck.js:/app/docker/healthcheck.js
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://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://ui:3000/config
ui:
image: quay.io/hmpps/hmpps-strengths-based-needs-assessments-ui:${APP_VERSION:-latest}
build:
context: .
target: production
networks:
- hmpps
depends_on:
- redis
- hmpps-auth
- 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
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-strengths-and-needs-ui-client
HANDOVER_CLIENT_ID: strengths-and-needs-assessment
HANDOVER_CLIENT_SECRET: san-secret
SESSION_SECRET: sessionsecret
SBNA_API_URL: http://api:8080
INGRESS_URL: http://localhost:3000
HTTPS: false
networks:
hmpps: