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