add compose-watchtower.yml
This commit is contained in:
parent
c5d8b00e22
commit
c2b1ae92db
|
@ -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
|
Loading…
Reference in New Issue