this post was submitted on 12 Apr 2026
110 points (97.4% liked)

Selfhosted

56957 readers
324 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Back in the day it was nice, apt get update && apt get upgrade and you were done.

But today every tool/service has it's own way to being installed and updated:

  • docker:latest
  • docker:v1.2.3
  • custom script
  • git checkout v1.2.3
  • same but with custom migration commands afterwards
  • custom commands change from release to release
  • expect to do update as a specific user
  • update nginx config
  • update own default config and service has dependencies on the config changes
  • expect new versions of tools
  • etc.

I selfhost around 20 services like PieFed, Mastodon, PeerTube, Paperless-ngx, Immich, open-webui, Grafana, etc. And all of them have some dependencies which need to be updated too.

And nowadays you can't really keep running on an older version especially when it's internet facing.

So anyway, what are your strategies how to keep sanity while keeping all your self hosted services up to date?

(page 2) 18 comments
sorted by: hot top controversial new old
[–] kossa@feddit.org 1 points 1 week ago

Ansible. Basically if I need to upgrade something for the first time, I write or extend an Ansible script an run those periodically.

[–] uenticx@lemmy.world 1 points 1 week ago* (last edited 1 week ago)

Snapshots and for i in $hosts;do ssh -tt "sudo apt update -y && sudo apt upgrade -y";done

For docker/k8s: argocd, helm, etc.

[–] lorentz@feddit.it 1 points 2 weeks ago

I have a shell script that handles all the quircks. I run it every few weeks. It does a btrfs snapshot so I can go back in case something is wrong, and after it updates Docker and Podman to the latest label.

For services not containized I have some automation to fetch the last version from internet (for example some home assistant addons that are just js files).

For the updates that are more difficult to script (or just not worth because they are very infrequent) I have a script that compares the running version with what published on their website and warns me I have a manual update.

Since most of the projecs I host have a gitub page it is relatively simple to write reusable code to do this stuff.

In general I don't trust automatic updates, there are seldom issues but they can be annoying to fix. So I just prefer to updates by hand whenever I have a few minutes free and I know I have direct access to the server in case the connection drops.

[–] 1984@lemmy.today 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I just run watchtower in docker. It will watch all your other docker images and update them to latest version automatically if you want.

It works fine but with time, I stopped thinking i need to be on latest version all the time. It really isnt very important.

Just a few of my services are open on the internet, mainly caddy and wireguard.

load more comments (1 replies)
[–] richardwonka@slrpnk.net 1 points 1 week ago

Proxmox helper scripts - at least the ones i use - come with a tag updateable. Those tagged have a command update that runs everything necessary on containers, VMs whatever.

Makes life simple, mostly.

The only manual interaction I’ve had was upgrading some VMs Debian from 12 to 13.

[–] seedlord_com@lemmy.zip 1 points 1 week ago

I'd definitely go with Renovate + ArgoCD, or any other GitOps-based tooling.

[–] slazer2au@lemmy.world 1 points 2 weeks ago

Portainer for container images

Bash script for everything else.

[–] quick_snail@feddit.nl 1 points 1 week ago* (last edited 1 week ago)

Unattended upgrades 11 months out of the year.

Very attended apt upgrades 2 weeks out of the year.

[–] eodur@piefed.social 1 points 1 week ago

Renovate couple with FluxCD if you're in k8s land, or noco-cd if you're on docker. GitOps is the way.

[–] p4rzivalrp2@piefed.social 1 points 1 week ago

I use dockhand right now, but I used to just use compose pull

[–] corsicanguppy@lemmy.ca 0 points 1 week ago
  1. Avoid anything with bad supply chains that fail iso27002
  2. Yum via cron
  3. Huh. That's all of it.
load more comments
view more: ‹ prev next ›