generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.07 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
version: "3"
services:
postgres:
image: postgres:16
container_name: find_postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev
volumes:
- ./src/main/resources/db/local/init:/docker-entrypoint-initdb.d:ro
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
depends_on:
- auth-db
ports:
- '9090:8080'
healthcheck:
test: [ 'CMD', 'curl', '-f', 'http://localhost:8080/auth/health' ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev,delius,local-postgres
- SPRING_JPA_PROPERTIES_HIBERNATE_SHOW_SQL=false
- SPRING_H2_CONSOLE_SETTINGS_WEBALLOWOTHERS=true
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-db:5432/auth-db
auth-db:
image: postgres:15
networks:
- hmpps
restart: always
ports:
- "5434:5432"
environment:
- POSTGRES_PASSWORD=admin_password
- POSTGRES_USER=admin
- POSTGRES_DB=auth-db
healthcheck:
test: pg_isready -d auth-db
networks:
hmpps: