-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.71 KB
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
services:
hmpps-auth:
image: ghcr.io/ministryofjustice/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
ports:
- "9090:8080"
healthcheck:
test: ["CMD", "bash", "-c", "echo > /dev/tcp/localhost/8080"]
environment:
- SPRING_PROFILES_ACTIVE=dev
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
hmpps-template-kotlin:
image: ghcr.io/ministryofjustice/hmpps-template-kotlin:latest
networks:
- hmpps
container_name: hmpps-template-kotlin
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "bash", "-c", "echo > /dev/tcp/localhost/8080"]
environment:
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
- EXAMPLE_API_URL=http://localhost:8080
app:
build:
context: .
args:
BUILD_NUMBER: "1.0.0"
GIT_REF: "a1b2c3"
GIT_BRANCH: main
networks:
- hmpps
ports:
- "3000:3000"
healthcheck:
test: ["CMD", "bash", "-c", "echo > /dev/tcp/localhost/3000"]
environment:
- PRODUCT_ID=UNASSIGNED
- REDIS_ENABLED=false
- REDIS_HOST=localhost
- HMPPS_AUTH_EXTERNAL_URL=http://localhost:9090/auth
- HMPPS_AUTH_URL=http://hmpps-auth:8080/auth
# These will need to match new creds in the seed auth service auth
- AUTH_CODE_CLIENT_ID=hmpps-typescript-template
- AUTH_CODE_CLIENT_SECRET=clientsecret
- CLIENT_CREDS_CLIENT_ID=hmpps-typescript-template-system
- CLIENT_CREDS_CLIENT_SECRET=clientsecret
- SESSION_SECRET=somesecretvalue
- TOKEN_VERIFICATION_API_URL=http://hmpps-auth:8080/auth
- TOKEN_VERIFICATION_ENABLED=false
- INGRESS_URL=http://localhost:3000
- NO_HTTPS=true
networks:
hmpps: