version: "3" services: watchtower: container_name: watchtower image: containrrr/watchtower:latest volumes: - /var/run/docker.sock:/var/run/docker.sock # - /config.json:/config.json command: --interval 86400 restart: unless-stopped ports: - 8081:8080 environment: - WATCHTOWER_NOTIFICATION_SLACK_CHANNEL=#alerts - WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=https://hooks.slack.com/services/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 - WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER=${WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER} - WATCHTOWER_NOTIFICATIONS=slack - WATCHTOWER_POLL_INTERVAL=60 - WATCHTOWER_RUN_ONCE=false - WATCHTOWER_WARN_ON_HEAD_FAILURE=never - WATCHTOWER_HTTP_API_METRICS=true - WATCHTOWER_HTTP_API_TOKEN=9e0d3513b85fc73f33343c849a8b943fff26eba6f8e79c38f5705789ec489cf7 # - WATCHTOWER_DEBUG=true - WATCHTOWER_HTTP_API_PERIODIC_POLLS=true