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
    healthcheck:
      test: ["CMD", "/bin/sh", "/app/healthcheck.sh"]
      interval: 60s
      timeout: 10s
      retries: 3
      start_period: 30s
