-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (49 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (49 loc) · 1.13 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
50
services:
db:
image: postgres:17-alpine
ports:
- "5555:5432"
environment:
POSTGRES_USER: trailcompass
POSTGRES_PASSWORD: trailcompass
POSTGRES_DB: tc_system
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- "pgdata:/var/lib/postgresql/data/pgdata:Z"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "tc_system"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
restart: always
networks:
- internal-network
server:
build: .
environment:
- DEV=false
- CONNECTION_STRING=jdbc:postgresql://db:5432/tc_system
- CONNECTION_USER=trailcompass
- CONNECTION_PASSWORD=trailcompass
- PORT=8080
depends_on:
db:
condition: service_healthy
restart: true
volumes:
- "./data:/usr/app/data"
ports:
- "8080:8080"
networks:
- internal-network
healthcheck:
test: ["CMD", "curl","-f","http://localhost:$PORT/health","||","exit","1"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
volumes:
pgdata:
networks:
internal-network: