• Morethanevil@lemmy.fedifriends.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 hours ago

    It is very easy. Here is my compose:

    services:
      watchtower:
        image: containrrr/watchtower
        container_name: watchtower
        restart: always
        volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - /etc/localtime:/etc/localtime:ro
        command: --interval 10800
        logging:
          driver: local
        environment:
              WATCHTOWER_NOTIFICATION_URL: gotify://
              WATCHTOWER_NOTIFICATIONS_HOSTNAME: Fancy name
              WATCHTOWER_MONITOR_ONLY: true
              WATCHTOWER_WARN_ON_HEAD_FAILURE: never
    

    Every 3 hours it will check for updates, send a message via Gotify and pull the new images. It will not restart the containers with the new images.

    • bigDottee@geekroom.tech
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      Honestly I think this might be a better way than what I’m using now. I’ve subbed to dockerrelease.io and releasealert.dev … get spammed all day everyday because the devs keep pushing all sorts of updates to old branches… or because those sites aren’t configured well.