-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.12 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
# PostgreSQL Production Configuration
# Usage: docker-compose up -d
version: '3.8'
services:
darkhold:
image: surajcm/darkhold
container_name: darkhold
depends_on:
db:
condition: service_healthy
ports:
- "8181:8181"
environment:
- SPRING_PROFILES_ACTIVE=postgres
- DATABASE_URL=jdbc:postgresql://db:5432/darkhold
- DATABASE_USER=darkhold
- DATABASE_PASSWORD=darkhold
- JAVA_OPTS=-Xmx512m
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8181/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
db:
image: postgres:16-alpine
container_name: darkhold-db
environment:
- POSTGRES_DB=darkhold
- POSTGRES_USER=darkhold
- POSTGRES_PASSWORD=darkhold
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U darkhold -d darkhold"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
driver: local