services: watchtower: image: containrrr/watchtower container_name: watchtower restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock env_file: - ./.env # The HOMEPAGE_VAR_WATCHTOWER_KEY is taken from the homepage .env environment: # This tells Watchtower to clean up old images after updating - WATCHTOWER_CLEANUP=true # This sets how often to check for updates (in seconds). 86400 = 24 hours. - WATCHTOWER_POLL_INTERVAL=86400 - DOCKER_API_VERSION=1.44 - WATCHTOWER_HTTP_API_METRICS=true # Required for the widget - WATCHTOWER_HTTP_API_TOKEN=${HOMEPAGE_VAR_WATCHTOWER_KEY} ports: - 8080:8080