diff --git a/compose-watchtower.yml b/compose-watchtower.yml new file mode 100644 index 0000000..f6905b7 --- /dev/null +++ b/compose-watchtower.yml @@ -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 \ No newline at end of file