this post was submitted on 12 May 2026
78 points (96.4% liked)

Selfhosted

59510 readers
541 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 3 years ago
MODERATORS
 

What to people use and recommend for this? I've read a bit about portainer, but I'm still learning - and don't know what the best solutions are.

Today I have a handful of selfhosted services running on my home machine - mostly installed directly, but a couple running as docker containers. As the scale of my selfhosting has grown, I've realized that things would be a lot easier to manage if each service was run as its own container, so that installed services are isolated.

The solution I'm looking for would make it easy (possibly a web UI) for me to monitor, modify, update, and remove containerized services, including networking and storage.

Edit: Also I would only want a FOSS solution.

top 50 comments
sorted by: hot top controversial new old
[–] statelesz@slrpnk.net 21 points 2 weeks ago (2 children)

Dockhand is great. I haven't touched Portainer ever since.
https://github.com/Finsys/dockhand

[–] valar@lemmy.ca 3 points 2 weeks ago (2 children)

Thanks, what have you liked about switching to this from portainer?

[–] AHorseWithNoNeigh@piefed.social 5 points 2 weeks ago

I concur with the other user: the logs are much easier to access and organized. The compact feel is much more suited to my preference.

[–] Kupi@sh.itjust.works 5 points 2 weeks ago (1 children)

I just recently switched from portainer to dockhand and I really like it. The UI is great and the setup and config wasn’t too complicated. I like that I can put both of my servers into one instance and can update all of my containers from dockhand vs manually. The other thing I like is being able to view the logs for my containers. Idk if it’s a me thing, but whenever I would try to view logs in portainer I would never be able to scroll up as it would update and send me back to the bottom. Again, I could’ve just been doing something wrong, but it always bothered me and I don’t have that issue with dockhand.

[–] Fnaargh@lemmy.zip 3 points 1 week ago* (last edited 1 week ago) (1 children)

Uncheck auto update/refresh in top right corner

[–] Kupi@sh.itjust.works 3 points 1 week ago
[–] domi@lemmy.secnd.me 2 points 2 weeks ago

That looks pretty good. Looks like Portainer is getting replaced this weekend.

[–] jrgd@lemmy.zip 15 points 2 weeks ago (1 children)

Might take a little bit of effort to do a conversion if you're locked into explicitly how Docker interacts with OCI containers, but over in the Podman camp you have two options.

  • Cockpit with the Podman containers interface: a graphical web-based solution for managing podman containers and the rest of the system.
  • Podman Quadlets: a config file-based way to manage Podman containers, volumes, pods, networks with custom SystemD units. Great if you want to version control your deployments.

Other than that, the more usable solutions I've tried of graphical Docker container management interfaces would be the ones in Unraid and Proxmox, though those solutions may not be suitable depending on your use case and have their own caveats to be aware of.

[–] valar@lemmy.ca 2 points 2 weeks ago (3 children)

Im not locked into docker, but it's what I have experience with so far, and a lot of services seem to have docker installation as a default option.

Do you think those things make it difficult to switch to podman? What are the differences?

[–] jrgd@lemmy.zip 4 points 2 weeks ago* (last edited 2 weeks ago)

Starting with confirmation of what others have said, yes you can use compose tools with Podman and Podman can hook directly with Docker Compose (the tool), but it really isn't recommended. Compatibility with compose now is better than it used to be, but there are still edge cases. For a lot of projects that just pre-write a compose file that they expect to cover the general use case of their container, you're best to take the compose file and write it out to Quadlet unit(s).

Other differences not mentioned can include:

  • Podman alongside containers has optional pods, which let you wrap multiple containers together, sharing the same IP internally. Useful for having a service and their sidecar containers (e.g. Valkey, Postgres, Meilisearch, etc.) be bundled under the same IP address and simply reference each other as localhost, 127.0.0.1, or ::1. If you utilize pods for certain split-container applications, you may need to remap certain service ports as they can overlap and cause binding failures.
  • Podman has multiple networking modes. If you use Podman at the system level (rootful) like Docker expects you to, you're not really going to encounter any quirks with the default networking setup. Per-user Podman (rootless) defaults to using the Pasta backend for networking, which is still very highly performant, but is a bit clunky to configure (if ever actually necessary) and inter-pod communication can be difficult to get right. Alternatively, registering rootless pods with a bridge network makes inter-pod communication easy, but can cause problems if accurate source IPs are needed (e.g. upstream reverse proxies, accurate client IP logging, etc.).
  • Because Podman is daemonless, there is also no persistent API socket loaded by default (an intentional security choice). For both rootful and rootless containers, you can enable this manually and mount it to containers that need it. For containers that expect docker.sock explicitly for API manipulation, your mount will need to reflect the name change of the podman.socket to what the container expects.
  • Podman by default won't shorthand container pulls from docker.io by default: a sin I see constantly done in so many compose files. When pulling a container from DockerHub, you need to put the docker.io/ prefix, just as you would but the appropriate prefix with Quay, Github, Gitlab, or any other distributor.
  • Podman can optionally let you auto-update containers based on the release tag specified for the container.
  • Because of Podman's integration with SystemD, a lot of oddball integrations (external cron jobs, one-shot services, etc.) can be pulled together with extra SystemD units (services, timers, etc.).
[–] poVoq@slrpnk.net 4 points 2 weeks ago

You can use the same containers with Podman, but docker-compose is not recommended with Podman and you rather use Quadlets which integrate nicely with Systemd.

[–] Meron35@lemmy.world 3 points 2 weeks ago

Docker's main advantage is just being more well known and hence more supported as a default option.

Even then, I feel that this availability of docker compose files is an illusion, due to their verbosity and limitations inherent to docker. Less granular control of permissions, clunkiness in updating images, and multi container stacks feeling like an afterthought.

In pretty much all other ways podman feels superior. Cockpit provides a basic web gui, but quadlets are the main draw. Way easier to configure, explicitly designed for multi containers, and updating all images is a single command.

Roughly, the different ecosystems from least to most complex are:

Docker/Portainer -> Podman/Cockpit/Quadlets -> Kubernetes

[–] watson387@sopuli.xyz 13 points 2 weeks ago (3 children)
[–] thirdBreakfast@lemmy.world 4 points 2 weeks ago

As a tinkerer, I have tried Portainer a couple of times, and another similar thing, but I end up never looking at them, and revert to just jumping into the command line. A bonus of this approach is keeping a copy of all my compose files in a repo.

If OP is being drawn to this because they want to know everything's running, what they're really looking for is monitoring - probably Uptime Kuma.

[–] hellmo_luciferrari@lemmy.zip 4 points 2 weeks ago

Indeed, I'd agree, it is the way I do it

[–] valar@lemmy.ca 3 points 2 weeks ago

This is the way I figured I'd go down at first, but I'm also curious if there's a popular solution I could manage remotely in a browser without having to ssh, for example

[–] Novi@sh.itjust.works 10 points 2 weeks ago (2 children)

Dockge - https://github.com/louislam/dockge

Docker compose with webui and upgrade button.

[–] lka1988@lemmy.dbzer0.com 2 points 2 weeks ago

I'll second Dockge. It works alongside Docker containers and doesn't try to shove configs into nonstandard locations and whatnot. Plus if you have multiple Docker instances, you can install Dockge on each of them and link them all together. Very handy.

load more comments (1 replies)
[–] K3can@lemmy.radio 9 points 2 weeks ago (2 children)

I'll second podman quadlets. Good security, full integration with systemd, pods allow applications to easily share a namespace, and you can manage graphically through Cockpit if you really want to.

[–] valar@lemmy.ca 3 points 2 weeks ago

systemd integration would be nice

[–] motruck@lemmy.zip 2 points 2 weeks ago (1 children)

Do you have an example of quadlets you defined that share a namespace?

[–] K3can@lemmy.radio 4 points 2 weeks ago (1 children)

It's a function of a "pod" within podman.

I wrote the podman examples for AudioMuseAI using a pod: https://github.com/NeptuneHub/AudioMuse-AI/tree/main/deployment/podman-quadlets

And I have an example *arr suite on my GitHub page: https://github.com/K3CAN/podman-arr-quadlets

[–] silver@das-eck.haus 1 points 22 hours ago (1 children)

This is pretty sweet. My docker-compose config is working perfectly and I have no reason to fuck with it, but you've got me tempted

[–] K3can@lemmy.radio 2 points 21 hours ago (1 children)

Podman quadlets can also auto-update and auto rollback, if needed.

[–] Andres4NY@social.ridetrans.it 0 points 21 hours ago (1 children)

@K3can @silver How do you handle running as other users? I like to run services as their own user, so currently I create a new user and (as them) run podman compose.

[–] K3can@lemmy.radio 1 points 18 hours ago

Quadlets work like any other systemd service.

You create the user/group you want to run as on the underlying system, then just specify that user/group in the quadlet file.

If you look at my *arr examples, you can see the user and groups they're running as.

[–] talkingpumpkin@lemmy.world 8 points 2 weeks ago

In your shoes (and, in fact, in mine) I'd try to move away from interactive tools and into file-driven ones.

Personally I use nixos, run WUD (what's up docker) to be notified of available updates, and manually test/update the containers once in a while (every couple weeks or so?)

There are a bazillion other solutions (from stuff like ansible/chef/puppet, to docker-compose, to kubernetes, to... a hand-written bash script) - the idea is to setup stuff via files that you can version, reference and write comments in rather than using some gui for interactive steps that you'll forget to document in some wiki.

Monitoring is a whole different beast than configuring: you'll be probably better off using something that does just that instead of some all-in-one solution. Try looking into something like beszel before going for the full prometheus/graphana stack.

[–] fozid@feddit.uk 8 points 2 weeks ago (1 children)

I recently moved from docker compose to podman quadlets. Took a bit of effort, but fully foss, and for me it's set and forget. Have about 30 containers across about 12 services. Have them set to auto update and it all runs through systemd.

[–] motruck@lemmy.zip 4 points 2 weeks ago (1 children)

This is the direction I'm headed. Goodbye docker. Quadlets everywhere. Im in the process of converting docker run scripts currently. Any tips or gotchas you can share that you learned?

[–] fozid@feddit.uk 3 points 2 weeks ago

Permissions were a pain to get right for my volumes and data I migrated. Other than that, It's really not that complicated, it was just a case of covering my compose files to systemd service files and starting the update timer.

[–] vegetaaaaaaa@lemmy.world 6 points 2 weeks ago

Podman pods (or quadlets) managed by ansible.

[–] jimmy90@lemmy.world 5 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

try NixOS

all your containers and other services will be managed through one re-usable file

if your server is >= 8GB then proxmox gives a nice interface builtin. i use it to make nixos lxc containers in which i run my containers. which does actually make sense

load more comments (3 replies)
[–] RanchBranch@anarchist.nexus 5 points 2 weeks ago (5 children)

I personally have switched over to Komodo after using portainer for years. Never looking back, I love it. Works perfectly and can do GUI, compose files, and repos for docker. I also have multiple machines running stuff and it let's me fiddle with everything in one UI.

[–] femtek@lemmy.blahaj.zone 2 points 2 weeks ago (1 children)

Ooo that looks nice, I'm using portainer right now, how was the migration?

[–] RanchBranch@anarchist.nexus 3 points 2 weeks ago

Honestly, not entirely certain I did it right, but it was super easy. I literally spun up Komodo, spun down Portainer without shutting any of the other containers/stacks down, then added the same stacks back through the GUI option into Komodo with the same exact compose/title/env options. It literally just recognized that the containers that were already running on my server were the correct ones and "added" them back to the stack in Komodo. I vaguely remember reading that there is a more "correct" way to do it, but I only read about it after the fact.

load more comments (4 replies)
[–] danielquinn@lemmy.ca 4 points 2 weeks ago (2 children)

Kubernetes. For a homelab, the stripped-down k3s is fantastic and surprisingly easy to get going.

Once you've got Kubernetes set up, you can lean on all the many tools already out there for things like deploying complex projects (Helm) and monitoring (Prometheus/Grafana). OpenLens is a nice piece of software you can use to monitor and control your cluster too, as is k9s.

[–] thejml@sh.itjust.works 3 points 2 weeks ago (1 children)

This is how I went and what I'd recommend. But that said, it's a bit of a steep learning curve as not everything in the self hosted/home lab community comes with helm charts.

load more comments (1 replies)
[–] irotsoma@piefed.blahaj.zone 3 points 2 weeks ago (1 children)

What do you use for repeatable recovery and deployment of systems?

I've looked at ArgoCD and FlexCD. ArgoCD was too flaky. When I made changes to helm files it would often fail to deploy them and the UI often wouldn't really show the detailed errors from things like helm syntax errors, so it was a pain to troubleshoot.

FlexCD was just really a pain to configure in the first-place and I didn't want to learn kustomize when I already have helm charts.

And neither really supported staged deployments or dealt with dependant services well. So I couldn't get it to deploy the infrastructure level helm charts like PostgreSQL before deploying the services that depend on it. Technically, with Kubernetes it shouldn't matter about the order of deployment but in reality when ArgoCD would deploy the other stuff first and wait for it to come up and it never came up because the dependencies weren't there, it caused it to choke a lot.

Just an example of the issues I've had. But I really want an easy way to make lots of small changes to charts and deploy them quickly as well as being able to quickly recover the cluster from backups if something catastrophic happens like a fire without having to manually deploy each chart. Just curious how others handle it or if it's always manual deployment of charts via CLI only.

[–] danielquinn@lemmy.ca 2 points 2 weeks ago* (last edited 2 weeks ago)

I've used FluxCD in the past and have looked into ArgoCD, but honestly, I've not seen any big benefit from either to be honest. I use k8s both at home and at work, and in both cases, we do "imperative" deploys: you run helm install ... either directly or via the CI and stuff is deployed.

So for example at my last job, our GitLab CI just had a section triggered exclusively for merges into master that ran helm install ... for all three environments. We had three values.yaml files, one for each environment, and when we wanted to deploy a new version, the process was:

  1. Create a tag for our release version (ie. 1.2.3) and push it to the repo. This would trigger a build and push the resulting image into the container registry.
  2. Push an update to the repo with the new tag set in the appropriate Helm values file. If we wanted to deploy 1.2.3 to development but not yet to staging or production, then the tag: value in each of the environment files would look like this:
  • k8s/chart/environments/development.yaml: tag: 1.2.3
  • k8s/chart/environments/staging.yaml: tag: 1.2.2
  • k8s/chart/environments/production.yaml: tag: 1.2.2

Once that change is pushed, the CI will automatically apply it with helm install ... and make sure that all three environments are what they're supposed to be.

As for dependent services, that should all be in your Helm chart so they're stood up and torn down together. The specific case you mention about "Service A" being dependent on "Service B" but stood up before "Service B" is ready is a classic problem, but easily solved:

The dependent service ("A" in this case) should have an entrypoint that checks for everything else before starting. Here's what I'm using right now in a project:

#!/bin/sh

while ! nc -z postgres 5432; do
  echo "Waiting for postgres..."
  sleep 0.1
done
echo "PostgreSQL started"

touch /tmp/ready

exec "$@"

I've even got some code that checks that all the Django migrations have run first for the same situation. The Kubernetes philosophy is that any container should be able to die at any time and be eventually be brought back up and that every container needs to be prepared for this. Typically this means that your containers should operate on the basis of "if I can't work, die, and hope the problem is solved by the time Kubernetes redeploys me".

[–] gedaliyah@lemmy.world 3 points 2 weeks ago

I was using CLI exclusively for a year or so, but recently added DockMon and it's helped with updates and at-a-glance management.

[–] irmadlad@lemmy.world 3 points 2 weeks ago

I’ve read a bit about portainer, but I’m still learning

I started with Portainer, and I still use it. It checks all the boxes for me. I would be remiss if I didn't mention there are other such platforms to manage Docker containers with such as Podman, Dockage, etc. Like I said, I started with Portainer, and I know how to drive that bus, so I stuck with it.

[–] eodur@piefed.social 3 points 2 weeks ago

If you want robust (and a ton to learn) go with k3s for a lightweight Kubernetes deployment and FluxCD.

If you want simpler go with docker-compose and doco-cd.

With a GitOps workflow you define it all in files in a bit repo then the server automatically deploys and updates. IMHO its much easier to maintain long term than click ops.

[–] Kirk@startrek.website 2 points 2 weeks ago

There are nice friendly frontends for this, Yunohost or CasaOS spring to mind but might be too simplistic if you already are familiar with Docker.

[–] ggrey@social.thelab.uno 2 points 2 weeks ago (1 children)
[–] valar@lemmy.ca 2 points 2 weeks ago (1 children)

Thanks, I've heard of this too. Its hard to tell what the differences in use-case all of these are. I'll have to do more research into how they work.

[–] Evil_Shrubbery@thelemmy.club 2 points 2 weeks ago* (last edited 2 weeks ago)

Well, I use it on all my rigs but it's not directly what I think you are asking about.

I just use Proxmox (hypervisor) to run vm/lxc which run docker - and I just have backup images of those.

It has pros & cons but it's not a docker backup, it's just that by chance it's ok for the little use I need it.

I would go for one of the other recommended solutions but perhaps consider a Proxmox layer underneath if you wanna a full image backup of the server(s?) itself.

load more comments
view more: next ›