services:
  portainer_edge_agent:
    image: portainer/agent:2.33.7
    container_name: portainer_edge_agent
    restart: unless-stopped
    environment:
      EDGE: "1"
      EDGE_ID: "bc4b9329-95c0-4c08-bddd-e5790330570f"
      # EDGE_KEY is sensitive — set via Portainer UI or pass at deploy time
      EDGE_KEY: ""
      EDGE_INSECURE_POLL: "1"
    volumes:
      # NOTE: Synology Docker root is /volume1/@docker, NOT /var/lib/docker
      - /volume1/@docker/volumes:/var/lib/docker/volumes
      - /:/host
      - portainer_agent_data:/data
      - /var/run/docker.sock:/var/run/docker.sock

volumes:
  portainer_agent_data:
