homelab-codex-ws/services/planner-agent/docker-compose.yml
Oskar Kapala 419a7f3e55 planner-agent: use env_file, keep only ANTHROPIC_API_KEY in environment
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>
2026-05-27 22:26:15 +02:00

18 lines
425 B
YAML

services:
planner-agent:
build: .
container_name: planner-agent
restart: unless-stopped
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