-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (50 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (50 loc) · 1.42 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
version: "3.9"
services:
cctvql:
build: .
container_name: cctvql
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ./config/config.yaml:/app/config/config.yaml:ro
- cctvql_data:/data
environment:
# Database — persist sessions and event log across restarts
CCTVQL_DB_PATH: /data/cctvql.db
# Health monitor — how often to poll camera status (seconds)
CCTVQL_HEALTH_POLL_INTERVAL: "60"
# Optional: protect the API with a key (set to require X-API-Key header)
# CCTVQL_API_KEY: ""
# Cloud LLM backends — use env vars instead of putting keys in config.yaml
# OPENAI_API_KEY: ""
# ANTHROPIC_API_KEY: ""
# Email notifications — set SMTP password here instead of config.yaml
# CCTVQL_SMTP_PASSWORD: ""
networks:
- cctvql-net
# Optional: Ollama for local LLM (remove if using OpenAI/Anthropic)
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
volumes:
- ollama_data:/root/.ollama
ports:
- "11434:11434"
networks:
- cctvql-net
# Uncomment for GPU support:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
ollama_data:
cctvql_data: # persistent SQLite database
networks:
cctvql-net:
driver: bridge