-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 978 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
38
39
40
41
42
43
44
45
46
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./models:/app/models
- ./data:/app/data
devices:
- /dev/video0:/dev/video0 # Map webcam device
privileged: true # Required for hardware access
environment:
- PYTHONUNBUFFERED=1
- DISPLAY= # Force headless mode
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- aeros-network
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://api:8000
depends_on:
api:
condition: service_healthy # Wait for API to be ready
restart: unless-stopped
networks:
- aeros-network
networks:
aeros-network:
driver: bridge