# Watchtower - Auto-update Portainer Edge Agent only
# Schedule: Sundays at 3:00 AM
# Only updates the portainer_edge_agent container

services:
  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower-agent-updater
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_SCHEDULE=0 0 3 * * 0
      - WATCHTOWER_ROLLING_RESTART=true
      - TZ=America/Los_Angeles
    command: portainer_edge_agent
    restart: unless-stopped
