-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-full.yml
126 lines (118 loc) · 3.31 KB
/
docker-compose-full.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
# An extension of docker-compose.yml
#
# Builds a docker image for licences
# Runs the containers from docker-compose.yml, a container for the licences image and an additional container
# for the licences image that overrides the default command to run the stubs.
#
version: '3.8'
services:
licences:
build: .
# image: quay.io/hmpps/licences:latest
deploy:
resources:
limits:
memory: 150M
networks:
- hmpps
container_name: licences
restart: always
depends_on:
- licence-db
ports:
- '3000:3000'
environment:
NODE_ENV: "test"
ENABLE_TEST_UTILS: "true"
DB_SSL_ENABLED: "false"
NOMIS_AUTH_URL: "http://hmpps-auth:8080/auth"
NOMIS_AUTH_EXTERNAL_URL: "http://localhost:9090/auth"
TOKENVERIFICATION_API_URL: "http://token-verification-api:8080"
NOMIS_API_URL: "http://stubs:3000/prisonApi"
DELIUS_API_URL: "http://stubs:3000/delius"
PROBATION_TEAMS_API_URL: "http://stubs:3000/probationteams"
HDC_URL: "http://licences:3000"
GOTENBERG_API_URL: "http://gotenberg:3000"
PORT: "3000"
DB_USER: "licences"
DB_PASS: "licences"
DB_SERVER: "licence-db"
API_CLIENT_ID: "licences"
API_CLIENT_SECRET: "clientsecret"
ADMIN_API_CLIENT_ID: "licencesadmin"
ADMIN_API_CLIENT_SECRET: "clientsecret"
REDIS_HOST: "licence-redis"
stubs:
build: .
command: npm run start-mocks
networks:
- hmpps
container_name: stubs
restart: always
environment:
NODE_ENV: "dev"
licence-db:
image: postgres
networks:
- hmpps
container_name: licence-db
restart: always
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=licences
- POSTGRES_USER=licences
- POSTGRES_DB=licences
licence-redis:
image: 'bitnami/redis:5.0'
networks:
- hmpps
container_name: licence-redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
gotenberg:
image: thecodingmachine/gotenberg:6.4.3
networks:
- hmpps
container_name: gotenberg
restart: always
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:3001/ping' ]
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
ports:
- '9090:8080'
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:8080/auth/health' ]
environment:
SPRING_PROFILES_ACTIVE: dev,token-verification
TOKENVERIFICATION_ENDPOINT_URL: "http://token-verification-api:8080"
DELIUS_ENABLED: "false"
token-verification-api:
image: quay.io/hmpps/token-verification-api:latest
networks:
- hmpps
- token-backend
container_name: token-verification-api
depends_on:
- token-verification-api-db
- hmpps-auth
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/ping" ]
environment:
SPRING_PROFILES_ACTIVE: local-redis
SPRING_DATA_REDIS_HOST: token-verification-api-db
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: "http://hmpps-auth:8080/auth/.well-known/jwks.json"
token-verification-api-db:
image: redis
networks:
- token-backend
container_name: token-verification-api-db
restart: always
networks:
hmpps:
token-backend:
internal: true