add compose-watchtower.yml

This commit is contained in:
dzj 2024-03-03 20:04:08 +08:00
parent c5d8b00e22
commit c2b1ae92db
1 changed files with 27 additions and 0 deletions

27
compose-watchtower.yml Normal file
View File

@ -0,0 +1,27 @@
version: '3.9'
name: watchtower
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower01
hostname: watchtower
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
y9-share-net: {}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
WATCHTOWER_MONITOR_ONLY: false
WATCHTOWER_NOTIFICATIONS: 'gotify'
WATCHTOWER_NOTIFICATION_GOTIFY_URL: 'https://svn.youshengyun.com:8888'
WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN: 'Ae6GpgTsNawqCwm'
command:
- "--interval=30"
networks:
y9-share-net:
external: true
mynet:
external: true