-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
49 lines (46 loc) · 1.08 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
version: '3.1'
services:
form-builder:
image: quay.io/hmpps/offender-categorisation
networks:
- hmpps
depends_on:
- form-db
- nomis-oauth2-server
ports:
- "3000:3000"
environment:
- PORT=3000
- DB_USER=form-builder
- DB_PASS=form-builder
- DB_SERVER=form-builder-db
- DB_NAME=form-builder
- DB_SSL_ENABLED=no
- NOMIS_AUTH_URL=http://nomis-oauth2-server:8080/auth
- NOMIS_AUTH_EXTERNAL_URL=http://localhost:8080/auth
- NODE_ENV=development
form-db:
image: postgres:15
networks:
- hmpps
container_name: form-builder-db
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=form-builder
- POSTGRES_USER=form-builder
- POSTGRES_DB=form-builder
nomis-oauth2-server:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: nomis-oauth2-server
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SPRING_PROFILES_ACTIVE=dev
networks:
hmpps: