-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
46 lines (44 loc) · 1.07 KB
/
compose.yaml
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
services:
application-server:
image: hephaestus-application-server
ports:
- '8080'
environment:
- SPRING_PROFILES_ACTIVE=prod
- DATABASE_URL=jdbc:postgresql://postgres:5432/hephaestus
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=root
- SECURITY_USER_NAME=${SECURITY_USER_NAME:-admin}
- SECURITY_USER_PASSWORD=${SECURITY_USER_NAME:-admin_password}
depends_on:
- postgres
networks:
- app-network
healthcheck:
test: "wget -qO- http://localhost:8080/actuator/health || exit 1"
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
postgres:
image: 'postgres:16'
environment:
- POSTGRES_DB=hephaestus
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
ports:
- '5432'
networks:
app-network:
aliases:
- postgres
volumes:
- postgresql-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
networks:
app-network:
driver: bridge`