Created
November 4, 2022 03:34
-
-
Save dclobato/ca7ed16f195df3f6497b6dd33602f9fd to your computer and use it in GitHub Desktop.
Stack com o Watchtower para ser usada no Portainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
watchtower: | |
container_name: WatchTower | |
image: containrrr/watchtower | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /opt/docker/watchtower:/config/:ro | |
environment: | |
- TZ=America/Sao_Paulo | |
- DOCKER_CONFIG=/config | |
- WATCHTOWER_CLEANUP=true | |
- WATCHTOWER_SCHEDULE="0 45 8 * * WED,SAT" | |
- WATCHTOWER_ROLLING_RESTART=true | |
- WATCHTOWER_TIMEOUT=30s | |
- WATCHTOWER_NOTIFICATIONS_HOSTNAME=${HOSTNAME} | |
- WATCHTOWER_NOTIFICATIONS=shoutrrr | |
- WATCHTOWER_NOTIFICATION_URL="telegram://${TELEGRAM_TOKEN}@telegram/?channels=${TELEGRAM_CHANNEL}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment