this post was submitted on 07 Jul 2023
111 points (99.1% liked)

Selfhosted

60951 readers
664 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
 

I used to simply use the 'latest' version tag, but that occasionally caused problems with breaking changes in major updates.

I'm currently using podman-compose and I manually update the release tags periodically, but the number of containers keeps increasing, so I'm not very happy with this solution. I do have a simple script which queries the Docker Hub API for tags, which makes it slightly easier to find out whether there are updates.

I imagine a solution with a nice UI for seeing if updates are available and possibly applying them to the relevant compose files. Does anything like this exist or is there a better solution?

you are viewing a single comment's thread
view the rest of the comments
[–] Krafting@lemmy.world 47 points 3 years ago (3 children)

WatchTower can auto uodate your container or notify you when an update is available, I use it with a Matrix account for notifications

[–] dud3@feddit.de 16 points 3 years ago

Yes, https://containrrr.dev/watchtower/ is a great tool. Used it myself for a whole now.

[–] mersh@lemm.ee 3 points 3 years ago

+1 for watchtower. I've been using it for about a year now without any issues to keep anywhere from 5 to 10 Docker containers updated.

[–] Dusty@l.dusty-radio.com 1 points 3 years ago (1 children)

Sorry if it's obvious, but I don't see a way to use Matrix for notifications on their documentation and my searching is coming up blank. Do you by chance have a tutorial for this?

[–] Krafting@lemmy.world 3 points 3 years ago* (last edited 3 years ago) (1 children)

Here is how I did it:

docker run -d \
  --name watchtower \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e WATCHTOWER_NOTIFICATION_URL=matrix://username:password@domain.org/?rooms=!ROOMID:domain.org \
  -e WATCHTOWER_NOTIFICATION_TEMPLATE="{{range .}}[WatchTower] ({{.Level}}): {{.Message}}{{println}}{{end}}" \
  containrrr/watchtower

Edit: I created a pull request to the WatchTower documentation, here: https://github.com/containrrr/watchtower/pull/1690

[–] Dusty@l.dusty-radio.com 2 points 3 years ago

Thank you very much! I'll get this set up on mine.