generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
86 lines (80 loc) · 2.01 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
services:
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
depends_on:
- delius
healthcheck:
test: [ "CMD", "curl", "-f", "http://hmpps-auth:9090/auth/health" ]
interval: 5s
retries: 60
environment:
- SERVER_PORT=9090
- SPRING_PROFILES_ACTIVE=dev,delius
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY=DEBUG
- DELIUS_ENDPOINT_URL=http://delius:8080
postgres:
image: postgres
restart: always
networks:
- hmpps
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev
tmpfs:
- /var/lib/postgresql
delius:
image: rodolpheche/wiremock
volumes:
- ./wiremock-delius:/home/wiremock
networks:
- hmpps
command:
- -verbose
- -global-response-templating
oasys-api:
image: rodolpheche/wiremock
volumes:
- ./wiremock-oasys-api:/home/wiremock
networks:
- hmpps
command:
- -verbose
- -global-response-templating
community-api:
image: rodolpheche/wiremock
volumes:
- ./wiremock-community-api:/home/wiremock
networks:
- hmpps
command:
- -verbose
- -global-response-templating
api:
image: ghcr.io/ministryofjustice/hmpps-assess-risks-and-needs:${IMAGE_TAG:-latest}
build:
context: .
target: production
networks:
- hmpps
depends_on:
- hmpps-auth
- postgres
- oasys-api
- community-api
healthcheck:
test: [ "CMD", "curl", "-f", "http://api:8080/health" ]
interval: 5s
retries: 100
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- OAUTH_ENDPOINT_URL=${OAUTH_ENDPOINT_URL:-http://hmpps-auth:9090/auth}
- COMMUNITY_API_BASE_URL=http://community-api:8080
- OASYS_API_BASE_URL=http://oasys-api:8080/eor/oasys
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY=DEBUG
- DATABASE_ENDPOINT=postgres:5432
networks:
hmpps: