Added docker compose file.

This commit is contained in:
2024-10-18 23:00:26 +01:00
commit 9c2897411f

16
docker-compose-yml Normal file
View File

@@ -0,0 +1,16 @@
version: "3"
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 30
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-zway
- WATCHTOWER_NOTIFICATIONS=slack
- WATCHTOWER_POLL_INTERVAL=60
- WATCHTOWER_RUN_ONCE=false
- WATCHTOWER_WARN_ON_HEAD_FAILURE=never