All runtime vars (REDIS_URL, OLLAMA_HOST, OLLAMA_MODEL, NODE_NAME, COOLDOWN_SECONDS, RUNTIME_PATH) are sourced from the host-local /opt/homelab/config/planner-agent/.env via env_file. Only ANTHROPIC_API_KEY stays in environment (not in env_file — secret injected at runtime by the operator when needed). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
478 B
YAML
20 lines
478 B
YAML
services:
|
|
planner-agent:
|
|
build: .
|
|
container_name: planner-agent
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host-gateway:host-gateway"
|
|
volumes:
|
|
- /opt/homelab:/opt/homelab
|
|
env_file:
|
|
- /opt/homelab/config/planner-agent/.env
|
|
environment:
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
healthcheck:
|
|
test: ["CMD", "/bin/sh", "/app/healthcheck.sh"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|