-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 883 Bytes
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
services:
api:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"
volumes:
- ./data:/data
environment:
- DATABASE_URL=${DATABASE_URL:-sqlite:////data/qready.db}
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/ping')\""]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
frontend:
build: ./frontend
ports:
- "5173:80"
depends_on:
api:
condition: service_healthy
agent:
build:
context: .
dockerfile: agent/Dockerfile
volumes:
- ./agent:/app
- ./data:/data
environment:
- DATABASE_URL=${DATABASE_URL:-sqlite:////data/qready.db}
profiles:
- scan # Lancé à la demande uniquement : docker compose --profile scan run agent