name: watchtower services: watchtower: image: containrrr/watchtower container_name: watchtower restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock - /root/.docker/config.json:/root/.docker/config.json:ro environment: WATCHTOWER_HTTP_API_UPDATE: "true" WATCHTOWER_HTTP_API_TOKEN: ${WATCHTOWER_TOKEN} WATCHTOWER_LABEL_ENABLE: "true" WATCHTOWER_CLEANUP: "true" TZ: Europe/Paris networks: - proxy labels: - traefik.enable=true - traefik.http.routers.watchtower.rule=Host(`watchtower.goutailler-olivier.com`) - traefik.http.routers.watchtower.entrypoints=websecure - traefik.http.routers.watchtower.tls.certresolver=le - traefik.http.services.watchtower.loadbalancer.server.port=8080 - traefik.docker.network=proxy networks: proxy: external: true name: proxy