this post was submitted on 12 Mar 2025
1 points (66.7% liked)

Selfhosted

62274 readers
335 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/26728988

Hi - I'm rebuilding my homelab and want to give docker compose another try. It looks like Watchtower is years out of date now. I see two forks that look more promising per https://techgaun.github.io/active-forks/index.html#https://github.com/containrrr/watchtower

These two: https://github.com/beatkind/watchtower https://github.com/nicholas-fedor/watchtower

The former seems to have more activity. What are you all using?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] roofuskit@lemmy.world 0 points 2 years ago (2 children)

Those of you self hosters who use watchtower, what's your use case?

[โ€“] morethanevil@lemmy.fedifriends.social 0 points 2 years ago (1 children)

I only let me notify about updates. I don't want autoupdates, because some projects may have breaking changes (looking at you Immich ๐Ÿ˜)

I get a message from watchtower over Gotify and then I can read the changelog

[โ€“] blazeknave@lemmy.world 0 points 2 years ago (1 children)

I've been thinking about this. Can you do that with watchtower? Don't need diem or anything?

[โ€“] morethanevil@lemmy.fedifriends.social 0 points 2 years ago (1 children)

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.

[โ€“] roofuskit@lemmy.world 0 points 2 years ago (1 children)

Is it possible to have it auto update say one container and notify the rest?

No, because MONITOR_ONLY is for all

[โ€“] ZeldaFreak@lemmy.world 0 points 2 years ago

Auto update. Works like a charm, except PostgreSQL. For me it's good enough and even though works with containers, where they don't recommend it. I do have backups and for my private time, I don't get paid, so it should be as maintenance as possible from my side.

I do check from time to time if something is broken and I noticed a container where they removed a version tag, I was using. The "biggest" thing that was broken, was my gitea server where they changed the config for the default Theme.

Also that's why I hate PostgreSQL. It requires manual labor for updating. Had a recipe Docker and they cut support for previous major version quickly. Not good. That stuff could break, ist an option with every update. This is why backups exist. As a single user, it's not a problem. For a big system, I wouldn't do auto updates, so I can check if everything works.