-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 816 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
services:
topic-watch:
build: .
container_name: topic-watch
ports:
- "8000:8000"
volumes:
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 512M
environment:
- TZ=UTC
# Override config via environment variables instead of mounting config.yml:
# TOPIC_WATCH_LLM__API_KEY: "your-api-key-here"
# TOPIC_WATCH_LLM__MODEL: "openai/gpt-5.4-nano"
# TOPIC_WATCH_CHECK_INTERVAL_HOURS: "6"