-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (52 loc) · 1.19 KB
/
docker-compose.yaml
File metadata and controls
56 lines (52 loc) · 1.19 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
51
52
53
54
55
56
services:
evalify-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8090:8080"
env_file:
- .env.prod
environment:
- SPRING_PROFILES_ACTIVE=dev
- DB_URL=jdbc:postgresql://evalify-db:5432/${DB_NAME}
container_name: evalify-spring-api
depends_on:
evalify-db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
volumes:
- ./logs:/app/logs
networks:
- evalify-network
evalify-db:
image: postgres:16
env_file:
- .env.prod
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U evalify -d evalify"]
interval: 30s
timeout: 10s
retries: 3
networks:
- evalify-network
volumes:
evalify_postgres_data:
networks:
evalify-network:
driver: bridge
name: evalify-backend