-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 820 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 820 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
services:
ai-baby-monitor:
build:
context: .
dockerfile: Dockerfile
container_name: AI-Baby-Monitor
restart: unless-stopped
ports:
- "8847:8847"
# Environment variables
environment:
- RTSP_URL=${RTSP_URL}
- FLASK_ENV=production
- PYTHONUNBUFFERED=1
# Volume mappings
volumes:
# Map recordings directory (MONITOR_RECORDINGS_DIR)
- ${HOME}/baby-monitor:/app/baby-monitor
# Health check override
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8847/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
recordings:
driver: local
cache:
driver: local
logs:
driver: local
networks:
default:
name: baby-monitor-network
driver: bridge