r/docker • • 10d ago

Mod Approved I built a self-hosted UI for Docker Compose across multiple hosts (single binary, no paid tier) - Dockmesh

Hi r/docker,

I've been running Docker Compose on a few machines at home for years. Over that time I've tried quite a few management UIs, but never really found one that worked the way I wanted.

Some didn't quite fit my workflow, others had things like SSO, multiple hosts or backups locked behind a paid tier. Eventually I decided to build my own.

It's called Dockmesh, and I've just released version 0.5.1.

A bit about how it works

Dockmesh is a web UI for managing Docker Compose stacks across multiple hosts.

One thing I wanted to keep from the start was the ability to work with normal Compose files. Your stacks stay as plain compose.yaml files on disk. You can edit them manually, keep them in Git or use docker compose directly without going through Dockmesh.

The server is a single Go binary with the UI embedded. Other hosts run a small agent that connects outbound to the server over mTLS, so you don't have to open incoming ports on every machine.

What it can do so far:

  • Manage Compose stacks across hosts, including deployments, rollbacks, Git-based deployments and moving stacks between hosts
  • Check for image updates, apply them and roll back if needed
  • Back up volumes, stacks and Dockmesh itself, with age encryption and support for local storage, SMB, SFTP, WebDAV and S3
  • Manage users with scoped roles, SSO (OIDC, SAML, LDAP, OAuth2) and 2FA
  • Send alerts for containers, hosts, disks, backups and certificates
  • Run vulnerability scans using Grype
  • Optionally handle reverse proxying and HTTPS through Caddy

There's also a hash-chained audit log, agent updates from the UI and a few other things. The UI is available in English and German.

Everything is open source (AGPL-3.0). There's no paid tier or separate edition.

Getting started

The easiest way to install it is:

curl -fsSL https://get.dockmesh.dev | sudo bash

The installer detects amd64/arm64, verifies the checksum and sets up a systemd service. If you'd rather inspect the script before running it (understandably), it's available in the repo. There's also a manual installation guide.

A few things worth mentioning

This is still a pre-1.0 project, so there's definitely more work to do. I test releases on lab VMs before publishing them, including server/agent upgrades, older-version upgrades, backup targets and SSO login.

I'm currently working on getting the initial server and host setup into the browser, along with an in-app updater.

I also want to be upfront about AI usage: parts of the code were written with AI assistance. I review and test changes before releasing them.

Dockmesh is mainly built for homelabs and small teams running anywhere from a few to a few dozen Docker hosts. It's not trying to replace Kubernetes.

I'd be interested to hear what you think, especially from people already managing Compose stacks across multiple machines. What's something your current setup does that you'd miss if you switched?

Repo: https://github.com/Dockmesh/dockmesh

Docs: https://dockmesh.dev

0 Upvotes

16 comments sorted by

3

u/Old_Dig5389 10d ago

Why did you implement to anti tampering log thing, hash chaining? I do manual compose files and have a few scripts and local UIs for docker on some servers. Use git for changes. Just curious about what job out there needs to prove compose file history wasn't tampered with.

1

u/BlinkMSP 10d ago

Fair question. For a single admin with compose files in git, you honestly don’t need it. Git already covers the history of your files.

The audit log isn’t about compose history. It records who did what in Dockmesh: deploys, opening a terminal in a container, reading volume files, downloading backups, token and role changes. That matters once several people or API tokens have access, or when you have to show someone (employer, customer) who touched what.

The hash chain on its own only shows that rows were edited or deleted. Someone with full DB access could rebuild the whole chain. So for real tamper evidence you keep the genesis hash somewhere the server can’t write and forward entries to a SIEM or log host via the webhook. If that’s overkill for your setup, just ignore it, it costs you nothing.

0

u/MrDrummer25 10d ago

I think when running containers in production, having a trail is a good thing.

2

u/Old_Dig5389 10d ago edited 10d ago

I agree, which is why I use git (and fluentd I guess counts). Just not sure what situation merits an auditable trail. I guess if there's a worry that an AI or person would delete entries to cover their tracks?

1

u/MrDrummer25 10d ago

Exactly. Git history can be modified. I can see why this technique is used.

1

u/MrDrummer25 10d ago

I currently use portainer with the remote agents. It works, but I have been thinking about making a switch. This one has me curious. The pain point for me is currently pasting my latest compose file into the stack in Portainer.

So I'd absolutely want to have a git repo with configs, and a way to auto pull when there are changes to image versions. Personally I am a bit cautious about immediately updating, I'd rather wait a few days for issues to be worked out.

0

u/BlinkMSP 10d ago

That pain point is pretty much why git sources exist. You point a stack at a repo/branch/path, Dockmesh polls it or takes a push webhook (GitHub, Gitea, GitLab), and with auto-deploy on it redeploys on every new commit, pulling the images again.

For “wait a few days before updating” I’d keep that decision in git rather than in the deploy tool: Renovate with minimumReleaseAge (e.g. 3 days) opens or merges the tag bump only after the image has been out a while, and Dockmesh deploys the commit. You get the delay, a PR to review and a clean history.

To be upfront about current limits: the built-in image update check only covers the host Dockmesh runs on, not agent hosts yet. And deploys on agents currently send only compose.yaml and .env, so relative bind mounts to other repo files don’t work there. That one is fixed in the next release.

2

u/MrDrummer25 10d ago

Hmm. I will need a think about this, because I do run my own software that has a separate gitea+woodpecker build + watchtower flow for auto updates. I guess those just stay on "latest" or I put that through the renovate bot flow that I'd have to auto bump versions. (Renovate for image versions may be overkill, idk)

2

u/BlinkMSP 10d ago

Makes sense. For your own images I’d skip Renovate entirely. Have Woodpecker tag the image with the version or commit SHA, and as the last pipeline step bump that tag in the compose file in your config repo. The Gitea push webhook then triggers the Dockmesh deploy. You get the same “build → running” flow as with Watchtower, but every deploy is a commit you can see and roll back to. With latest a rollback can’t really work, since the history only knows the tag.

Renovate only earns its keep for third-party images, and even there it’s optional. Built-in auto updates with a minimum age are on the list after the next release, but they’re not there today, so I won’t pretend otherwise.

2

u/MrDrummer25 10d ago

Makes sense. Thank uou for your insight! I'll be sure to give this a try 😀

1

u/BorysTheBlazer 10d ago

When you roll back a stack, does it also restore volume data from the backup, or only the compose file and image tags?

1

u/BlinkMSP 10d ago

Only the compose file. A rollback takes the compose.yaml from that history entry and redeploys it. Volumes and .env stay as they are. History also stores tags, not digests, so if you roll back to app:latest you get whatever latest points to now. Pin versioned tags if you want rollback to mean something.

Volume data is a separate step: a stack backup holds the stack files plus every volume declared in the compose file, and you restore it from the run (merge, or replace with the stack stopped), then deploy. So for “app update broke my data”, it’s restore the last backup, then roll back.

Fair point though that it would be nicer as one action. A “back up before deploy” option is something I’m thinking about.

1

u/BorysTheBlazer 9d ago

A back-up-before-deploy option would matter most for apps that run schema migrations on startup, since a compose rollback can't undo those. Restoring the volume first is the only real way back.

1

u/BlinkMSP 9d ago

Yes, that's exactly the kind of case I'm talking about. Once the migration is complete, the previous image cannot interpret the data anymore, and so a rollback using the compose command won't be enough. In the case of databases, the backup needs to be done when the stack is down (or through the use of a dump), since you'll get inconsistent backups if you don't do this. This is how I'd like it to work.

1

u/git-age-checker 10d ago

🛠️ GitHub Repository Insights

1

u/Hostman_com 9d ago

The audit entry needs to come from the tool handling the restart, where the user is identified. It should record who requested it, which service and host they targeted, when it happened, and whether it succeeded.

If that tool already sends those records through Fluentd to a separate log host, you may already have what you need.