-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.35 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
57
58
59
60
61
62
63
services:
qdrant:
image: winda0001/hypertension-qdrant:latest
ports:
- "6333:6333"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/6333' || exit 1"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
hypertensiondb:
build:
context: ./hypertension
env_file: .env
environment:
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
depends_on:
qdrant:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 3s
retries: 5
start_period: 20s
backend:
build:
context: .
dockerfile: Dockerfile.backend
env_file: .env
environment:
- HYPERTENSION_API_URL=http://hypertensiondb:8000
volumes:
- ebm5a_cache:/app/data/cache
- ebm5a_logs:/app/logs
depends_on:
hypertensiondb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 40s
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "8080:80"
depends_on:
backend:
condition: service_healthy
volumes:
ebm5a_cache:
ebm5a_logs: