Check out Dockge. It provides a simple yet very usable and useful web UI for managing Docker compose stacks.
In the docker folder with the docker-compose.yml of whatever docker container you want to upgrade:
docker compose pull && docker compose up -d
As others have said, for large groups of containers it's helpful to use Watchtower.
Immich in particular warns to backup your database before an upgrade. Also be on the lookout for breaking changes which require you to alter your docker-compose.yml file before an upgrade.
Oh and after upgrades to remove any dangling images which sometimes take up a lot of space:
docker image prune
Also if you want services to be interoperable, learn about docker networking now not later and remember for static IPs you must create a user defined bridge.
I have 5 docker-compose
-based services. I wrote a shell script:
#!/usr/bin/env bash
for y in $(find /etc/ -name docker-compose.yml); do
cd $(dirname $y)
docker compose pull
systemctl restart $y
done
(edit: spelling; thanks Unquote0270)
I hope the real version doesn't have the spelling problem!
I use Portainer (portainer.io) - it’s a prett nice WebUI which lets me manage the whole set of services and easily add new ones as you can edit the compose yaml right in the browser.
There’s no substitute for knowing all the docker commands to help you get around but if you are looking for something to help with management then this might be the way to go.
Watchtower also recommended is probably a good shout just be warned about auto upstating past your config - it’s super easy for the next image you pull to just break your setup because of new ENV or other dependency you’re not aware of.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!