Swarmpit with Docker Swarm: One Web UI for Two or Three Machines (Linux, Windows, Mac)
Before you start
- 26 min read
Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first

What you get in one minute#
Swarmpit is a free, self-hosted web page for Docker Swarm: you join two or three machines into one Docker cluster, run Swarmpit on it, and then see and manage all your services, stacks, volumes, networks and secrets in a browser.
Logo: the official Swarmpit project (github.com/swarmpit/swarmpit, file resources/public/img/logo.svg at tag 1.10, EPL-1.0)
Docker Swarm is the clustering built into Docker Engine. Swarmpit adds the screens on top: node list, CPU and memory graphs, logs, scaling buttons and a stack editor. It suits a homelab with a small, steady set of services. It does not replace the CLI, which you will still use to fix things.
Note: every domain, password, e-mail and address on this page is a dummy example (
example.com,change-me-please,<manager-ip>). Replace each with your own and never commit real secrets.
| What | Value (official sources, read 5 December 2026) |
|---|---|
| Current release | Swarmpit 1.10, released 16 April 2026 (previous: 1.9, 28 April 2020) |
| Images to pin | swarmpit/swarmpit:1.10 (amd64, arm64, arm/v7, arm/v5), swarmpit/agent:2.2 (amd64, arm64, arm/v7, arm/v6), couchdb:2.3.0 (amd64 only on Docker Hub), influxdb:1.8 |
| Time needed | About 60 minutes (our estimate, not measured) |
| RAM | Stack file reserves about 800 MB on the manager (from the file, not measured); the agent 32 MB per machine |
| Ports | 888 for the web page (plain HTTP); between machines 2377/tcp, 7946/tcp+udp, 4789/udp |
| Licence | Eclipse Public License 1.0 (EPL-1.0) |
| Official docs | Swarmpit README and Docker Swarm mode |
At a glance:
- What it is: four services (app, agent, CouchDB, InfluxDB) that run as a Swarm stack.
- Honest status: the project calls itself "in maintenance mode" (below). Fine for a lab.
- One machine only? A Compose UI such as Dockge, Komodo or Arcane is simpler.
- Windows and Mac: the swarm runs on Linux; your PC drives it from a terminal and the browser.
Is Swarmpit still maintained? Mixed. The README says "This UI is in maintenance mode", and the maintainer's status post of 25 January 2026 promises no new features and slow bug fixes. Yet release 1.10 came on 16 April 2026 and master got changes in August and October 2026 (not archived; 177 open issues and pull requests). Those later changes are in no release, so we pin 1.10. Forks exist (named in issue 714); we tested none.
How it fits together#
Docker Swarm turns your machines into one pool. Swarmpit's app and its two databases run on one chosen manager machine, the small agent runs on every machine, and you reach the app through an HTTPS front door.
Drawn for this guide from the official stack file and README at tag 1.10.
Swarm words in plain language:
| Word | Meaning |
|---|---|
| Node | One machine. Managers keep the cluster state; workers only run tasks (managers run tasks too) |
| Service / task | "Run this image, 2 copies, on this port" / one running copy. Swarm keeps it true |
| Stack | A group of services, networks and secrets from one YAML file, started with docker stack deploy |
| Overlay network | A virtual network that spans all machines, so services find each other by name |
| Routing mesh | A published port answers on every node, even where no copy runs |
| Secret | A small file Docker keeps encrypted and hands only to chosen services, under /run/secrets/ |
Why not two managers? Managers vote (Raft) and a majority must be alive. Per the Docker docs, 1 or 2 managers tolerate 0 failures, 3 tolerate 1, 5 tolerate 2. At home, use one manager and make the others workers. If it dies, services keep running but you cannot change anything until it is back.
Before you start#
You need two or three machines with fixed addresses on one network.
| System | What to have |
|---|---|
| Linux (the swarm machines) | Docker Engine 25 or newer (Swarmpit's agent talks API 1.44, which needs Docker 25.0+), SSH access, about 1 GB free RAM on the manager (our estimate from the stack file) |
| Windows | Windows 10 or later, PowerShell, Docker CLI (Docker Desktop) and OpenSSH, to drive the Linux manager |
| Mac | Terminal, Docker CLI (Docker Desktop) and ssh |
docker --version
docker info --format '{{.Swarm.LocalNodeState}}'
The second command prints inactive on a machine that is not in a swarm yet.
Checklist:
- [ ] Every machine has a fixed IP address (we write
<manager-ip>for the manager's) - [ ] Ports 2377/tcp, 7946/tcp+udp and 4789/udp are open between the machines, and only between them
- [ ] For HTTPS later: a domain, DNS pointing at the manager, ports 80 and 443 reachable
Tested by DIY Lab Hub: not yet. Commands come from the official docs and source files read on 5 December 2026. We did not run them on a real swarm.
Tip: The Docker docs warn that port 4789 (VXLAN overlay traffic) does not check who sends to it, so never let untrusted traffic reach it.
LLM Guide: let your AI assistant set it up#
Prefer to let an AI do the typing? Copy the block below into ChatGPT, Claude, Gemini or a local model. It first asks about your setup (system, Docker, reverse proxy, HTTPS), then follows only the path that fits you. It uses the same pinned versions as this guide. You still read each command before you run it.
You are my assistant for setting up Docker Swarm on two or three Linux machines and managing it with Swarmpit (a self-hosted web UI for Docker Swarm).
Follow the DIY Lab Hub guide https://diylabhub.com/swarmpit/ (checked 5 December 2026).
Work one step at a time. Before each command, say in one line what it does. Wait for my OK before anything that deletes data, stops a service, changes my router or opens a port.
STEP 0 - FIND OUT MY SETUP. Ask me these questions (or have me run the read-only checks) before you do anything else:
1. Which machines will be in the swarm? They must be Linux with fixed IP addresses on one network. Windows and Mac are only my control computers (a Docker CLI context over SSH). Is one machine enough? Then a Compose UI such as Dockge, Komodo or Arcane is simpler; tell me so.
2. Is Docker Engine 25 or newer installed on each machine? Check: docker --version and docker info --format '{{.Swarm.LocalNodeState}}' (prints inactive when not in a swarm yet).
3. Are ports 2377/tcp, 7946/tcp+udp and 4789/udp open between the machines, and only between them? Never forward them on the router.
4. Which machine is the single manager (the guide uses one manager; two managers survive nothing)? What is its fixed IP (<manager-ip>) and node name (docker node ls)?
5. Do I already run a reverse proxy: Traefik (v3), Caddy, or none? HTTPS with a public domain, HTTPS at home only, or plain HTTP inside my LAN (port 888)?
THEN FOLLOW THE MATCHING PATH:
- No swarm yet: on the manager docker swarm init --advertise-addr <manager-ip>, then docker swarm join-token worker and, on each other machine, docker swarm join --token <worker-token> <manager-ip>:2377. Run init on ONE machine only. Check docker node ls shows every node Ready and Active.
- Windows/Mac control computer: docker context create swarm-lab --docker "host=ssh://<user>@<manager-ip>", docker context use swarm-lab.
- Optional first test: a tiny stack with traefik/whoami:v1.12.0 and 3 replicas, to learn deploy, scale and remove.
- Plain HTTP at home: use the stack file below as it is; the web page is on http://<manager-ip>:888. Never open port 888 to the internet.
- Traefik v3 on the swarm: docker network create --driver overlay proxy; in the app service delete the ports block, add the "proxy" network, and under deploy: labels: (Swarm reads service labels) add:
traefik.enable=true
traefik.http.routers.swarmpit.rule=Host(`swarmpit.example.com`)
traefik.http.routers.swarmpit.entrypoints=https
traefik.http.routers.swarmpit.tls=true
traefik.http.routers.swarmpit.tls.certresolver=le
traefik.http.routers.swarmpit.service=swarmpit
traefik.http.services.swarmpit.loadbalancer.server.port=8080 (required in Swarm; the backend port is 8080, not 888)
Traefik v3 uses --providers.swarm.* (the v2 setting providers.docker.swarmMode=true stops it from starting). Use the Let's Encrypt staging server first.
- No Traefik but I want HTTPS: Caddy 2.11.9 (image: caddy:2.11.9) as a Swarm service on the "proxy" network with a Docker config for the Caddyfile: swarmpit.example.com { reverse_proxy swarmpit_app:8080 }. Home only: use swarmpit.home.arpa with "tls internal" and trust Caddy's root certificate.
THE STACK FILE (folder ~/docker_volumes/swarmpit, file swarmpit.yml; keep these exact versions):
services:
app:
image: swarmpit/swarmpit:1.10
environment:
- SWARMPIT_DB=http://db:5984
- SWARMPIT_INFLUXDB=http://influxdb:8086
- SWARMPIT_DOCKER_API=1.44
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "888:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 60s
timeout: 10s
retries: 3
networks: [net]
configs:
- source: swarmpit_users
target: /run/configs/users.yaml
secrets: [swarmpit_admin_password]
deploy:
resources: {limits: {cpus: '0.50', memory: 1024M}, reservations: {cpus: '0.25', memory: 512M}}
placement:
constraints: [node.role == manager, node.labels.swarmpit == data]
db:
image: couchdb:2.3.0
volumes: [db-data:/opt/couchdb/data]
networks: [net]
deploy:
resources: {limits: {cpus: '0.30', memory: 512M}, reservations: {cpus: '0.15', memory: 128M}}
placement:
constraints: [node.labels.swarmpit == data]
influxdb:
image: influxdb:1.8
volumes: [influx-data:/var/lib/influxdb]
networks: [net]
deploy:
resources: {limits: {cpus: '0.60', memory: 512M}, reservations: {cpus: '0.30', memory: 128M}}
placement:
constraints: [node.labels.swarmpit == data]
agent:
image: swarmpit/agent:2.2
environment:
- DOCKER_API_VERSION=1.44
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks: [net]
deploy:
mode: global
labels:
swarmpit.agent: 'true'
resources: {limits: {cpus: '0.10', memory: 64M}, reservations: {cpus: '0.05', memory: 32M}}
networks:
net:
driver: overlay
volumes:
db-data:
driver: local
influx-data:
driver: local
configs:
swarmpit_users:
file: ./config/users.yaml
secrets:
swarmpit_admin_password:
external: true
CouchDB 2.3.0 and InfluxDB 1.8 are what the official Swarmpit stack uses; do not move them to 3.x or 2.x (no dump/restore path in this guide).
Before deploying: mkdir -p ~/docker_volumes/swarmpit/{config,backups}; docker node update --label-add swarmpit=data <manager-node-name> (pins the databases to one node). Then I create the admin password as a Docker secret from a dummy I replace: printf '%s' '<my-password>' | docker secret create swarmpit_admin_password - (I type it myself; never ask me for it), and config/users.yaml with one admin user using only password_secret: swarmpit_admin_password.
Deploy: docker stack config -c swarmpit.yml > /dev/null && echo "file is valid", then docker stack deploy -c swarmpit.yml swarmpit, docker stack services swarmpit, docker service logs --tail 50 swarmpit_app.
CHECK IT WORKED: docker node ls shows all nodes Ready; docker stack services swarmpit shows app, db and influxdb at 1/1 and agent at one copy per machine; http://<manager-ip>:888 (or my HTTPS name) shows the login and I sign in as admin; with HTTPS, curl -I https://swarmpit.example.com returns HTTP/2 200 or a redirect to login.
BACKUP: scale db and influxdb to 0, tar the volumes swarmpit_db-data and swarmpit_influx-data with swarmpit.yml, config/users.yaml and my own stack files, scale them back to 1; copy the archive off the manager.
RULES FOR YOU:
- Use only the versions above; never :latest and no invented options. Swarmpit is in maintenance mode, so tell me that honestly. If a step fails, show me the exact error and read https://github.com/swarmpit/swarmpit/blob/1.10/README.md and https://docs.docker.com/engine/swarm/ before guessing.
- The Docker socket is root-level power; the agent endpoint accepts anonymous posts in 1.10: never put Swarmpit on the open internet. Keep swarmpit.yml in Git without secrets.
- Values like swarmpit.example.com, <manager-ip>, <user> and change-me values are examples; ask me for mine.
- Never ask me to paste passwords, tokens or keys into this chat.
Step 1: Create the swarm and add machines#
Docker's tutorial uses Linux hosts; we did not try Docker Desktop as a swarm. Run init on the future manager and join on the others.
Linux#
On the manager:
docker swarm init --advertise-addr <manager-ip> docker swarm join-token worker
Copy the docker swarm join ... line it prints. On each other machine:
docker swarm join --token <worker-token> <manager-ip>:2377
Back on the manager:
docker node ls
Windows (PowerShell)#
Do the Linux commands above over SSH on your Linux machines. Then point your PC's Docker CLI at the manager with a context (Docker's remote-access method):
docker context create swarm-lab --docker "host=ssh://<user>@<manager-ip>" docker context use swarm-lab docker node ls
Run docker context use default to go back to your own PC.
Mac (Terminal)#
Same as Linux over SSH, then the context:
docker context create swarm-lab --docker "host=ssh://<user>@<manager-ip>" docker context use swarm-lab docker node ls
Check it worked. docker node ls lists every machine as Ready and Active, and the manager as Leader. The docs ask for a fixed manager IP: after a restart with new addresses, nodes cannot find the managers.
Tip: Run
docker swarm initon one machine only. Everyone else usesjoinwith the token; a secondinitmakes a second swarm.
Step 2: Deploy a tiny test stack first#
Learn the loop first: write a file, deploy, look, scale, remove. traefik/whoami is a small web server that prints its own container name.
Linux#
mkdir -p ~/docker_volumes/swarmpit/{config,backups}
cd ~/docker_volumes/swarmpit
cat > lab.yml << 'EOF'
services:
web:
image: traefik/whoami:v1.12.0
ports:
- "8080:80"
deploy:
replicas: 3
EOF
docker stack deploy -c lab.yml lab
docker stack services lab
docker stack ps lab
curl http://localhost:8080
Windows (PowerShell)#
$base = "$HOME\docker_volumes\swarmpit"
foreach ($d in "config","backups") { New-Item -ItemType Directory -Force "$base\$d" | Out-Null }
Set-Location $base
@'
services:
web:
image: traefik/whoami:v1.12.0
ports:
- "8080:80"
deploy:
replicas: 3
'@ | Set-Content -Encoding ascii lab.yml
docker stack deploy -c lab.yml lab
docker stack services lab
curl.exe http://<manager-ip>:8080
Mac (Terminal)#
Same commands as Linux, but use curl http://<manager-ip>:8080.
We did not run this, so we cannot show real output. Check it worked. docker stack services lab shows lab_web with 3/3 replicas. Run curl twice: the Hostname: line changes between copies, and the routing mesh answers on any node's address.
Now scale and clean up:
docker service scale lab_web=2 docker stack rm lab
Tip:
docker stack deploydoes not build images. Abuild:line printsIgnoring unsupported options: build. Build and push your image to a registry first, then name it inimage:.
Step 3: Label the node and create the admin secret#
Swarmpit's databases use node-local Docker volumes that are not copied between machines; if Swarm moved CouchDB elsewhere, it would start empty. The README says to use a shared volume driver or pin the database to one node. We pin it with a node label.
The first admin password goes into a Docker secret. Swarmpit 1.10 can create users from a YAML file and read a password from a secret file in /run/secrets/. The official stack leaves CouchDB itself without a password (it is reachable only on the private overlay network); we did not change that.
Linux#
cd ~/docker_volumes/swarmpit
docker node ls
docker node update --label-add swarmpit=data <manager-node-name>
printf '%s' 'change-me-please' | docker secret create swarmpit_admin_password -
cat > config/users.yaml << 'EOF'
users:
- username: admin
email: [email protected]
role: admin
password_secret: swarmpit_admin_password
EOF
docker secret ls
Windows (PowerShell)#
Set-Location "$HOME\docker_volumes\swarmpit"
docker node ls
docker node update --label-add swarmpit=data <manager-node-name>
Set-Content -NoNewline -Encoding ascii pw.tmp 'change-me-please'
docker secret create swarmpit_admin_password pw.tmp
Remove-Item pw.tmp
@'
users:
- username: admin
email: [email protected]
role: admin
password_secret: swarmpit_admin_password
'@ | Set-Content -Encoding ascii config\users.yaml
docker secret ls
Mac (Terminal)#
Same commands as Linux.
<manager-node-name> is the name in the HOSTNAME column of docker node ls. change-me-please is a dummy: choose your own password (Swarmpit wants at least 8 characters and a user name of at least 4). Check it worked. docker secret ls shows swarmpit_admin_password, and docker node inspect <manager-node-name> --format '{{.Spec.Labels}}' shows map[swarmpit:data].
Tip: Use only
password_secretin the user entry. The docs say the secret wins over the other password keys, but the 1.10 source checkspasswordandpassword_envfirst. A missing secret creates no user and prints no error.
Step 4: Write the Swarmpit stack file#
This is the official 1.10 stack file with our changes: pinned images (the official file uses latest), no obsolete version: line, the node label, the users file and secret, the API setting, and a CouchDB limit of 512M instead of 256M (open issue 697 reports CouchDB killed at 256M; our value is a guess). Save it as swarmpit.yml in ~/docker_volumes/swarmpit (Windows: $HOME\docker_volumes\swarmpit):
services:
app:
image: swarmpit/swarmpit:1.10
environment:
- SWARMPIT_DB=http://db:5984
- SWARMPIT_INFLUXDB=http://influxdb:8086
- SWARMPIT_DOCKER_API=1.44
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "888:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 60s
timeout: 10s
retries: 3
networks:
- net
configs:
- source: swarmpit_users
target: /run/configs/users.yaml
secrets:
- swarmpit_admin_password
deploy:
resources:
limits:
cpus: '0.50'
memory: 1024M
reservations:
cpus: '0.25'
memory: 512M
placement:
constraints:
- node.role == manager
- node.labels.swarmpit == data
db:
image: couchdb:2.3.0
volumes:
- db-data:/opt/couchdb/data
networks:
- net
deploy:
resources:
limits:
cpus: '0.30'
memory: 512M
reservations:
cpus: '0.15'
memory: 128M
placement:
constraints:
- node.labels.swarmpit == data
influxdb:
image: influxdb:1.8
volumes:
- influx-data:/var/lib/influxdb
networks:
- net
deploy:
resources:
limits:
cpus: '0.60'
memory: 512M
reservations:
cpus: '0.30'
memory: 128M
placement:
constraints:
- node.labels.swarmpit == data
agent:
image: swarmpit/agent:2.2
environment:
- DOCKER_API_VERSION=1.44
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- net
deploy:
mode: global
labels:
swarmpit.agent: 'true'
resources:
limits:
cpus: '0.10'
memory: 64M
reservations:
cpus: '0.05'
memory: 32M
networks:
net:
driver: overlay
volumes:
db-data:
driver: local
influx-data:
driver: local
configs:
swarmpit_users:
file: ./config/users.yaml
secrets:
swarmpit_admin_password:
external: true
The less obvious parts:
| Line | Why |
|---|---|
swarmpit/agent:2.2 | The agent has no 1.10 tag; 2.2 (April 2020) is its newest numbered one. latest was rebuilt in August 2026 |
SWARMPIT_DOCKER_API and DOCKER_API_VERSION | Docker 29.0 raised the minimum API to 1.44 and 29.3 lowered it to 1.40. The agent's built-in 1.35 is still too old, so we set 1.44 for both |
mode: global | One agent task on every node. This is how worker machines show up in the graphs |
ports: "888:8080" | The web page, plain HTTP, on every node (routing mesh). The HTTPS section removes it |
couchdb:2.3.0 | What the official file uses; last built February 2020 (Docker Hub) |
external: true | The secret was created by hand in Step 3, not by the stack |
Check it worked.
Linux#
cd ~/docker_volumes/swarmpit docker stack config -c swarmpit.yml > /dev/null && echo "file is valid"
Windows (PowerShell)#
Set-Location "$HOME\docker_volumes\swarmpit"
docker stack config -c swarmpit.yml | Out-Null; if ($?) { "file is valid" }
Mac (Terminal)#
Same commands as Linux.
Tip: Keep
swarmpit.ymlin Git. Historical reports show that a stack edited and redeployed through the Swarmpit screens can lose settings such as secret file modes (issue 482, open). The file is your source of truth; the UI is for looking.
Step 5: Deploy Swarmpit and sign in#
Linux#
cd ~/docker_volumes/swarmpit docker stack deploy -c swarmpit.yml swarmpit docker stack services swarmpit docker service logs --tail 50 swarmpit_app
Windows (PowerShell)#
Set-Location "$HOME\docker_volumes\swarmpit" docker stack deploy -c swarmpit.yml swarmpit docker stack services swarmpit docker service logs --tail 50 swarmpit_app
Mac (Terminal)#
Same commands as Linux.
We did not run this. The official docs show docker stack deploy printing lines like Creating network swarmpit_net and Creating service swarmpit_app (names and order differ). Pulling four images takes a few minutes.
Check it worked. docker stack services swarmpit shows app, db and influxdb at 1/1 and agent at one copy per machine (for example 3/3). Open http://<manager-ip>:888 in a browser. The README says start-up "might take a few seconds". Sign in as admin with the password from Step 3. If you see a "create first user" screen instead, the users file was not read; see Troubleshooting.
Look around: Nodes shows every machine, Services and Stacks list what runs (Swarmpit included), and each service has logs, a scale control and an edit page.
Put it behind HTTPS (with or without Traefik)#
Port 888 is plain HTTP, so the password travels in clear text. This section is for a server with a domain (or a home name with a local certificate). On a closed home network you may skip it, but never open 888 to the internet. Run it from the folder with swarmpit.yml; from Windows or Mac keep using the swarm-lab context.
Both routes need a shared overlay network:
docker network create --driver overlay proxy
Then change the app service in swarmpit.yml for both routes: delete its ports: block (so the UI is no longer open on port 888) and join it to the proxy network. The Traefik route adds labels below.
services:
app:
networks:
- net
- proxy
networks:
net:
driver: overlay
proxy:
external: true
Only one program can own ports 80 and 443: choose Traefik or Caddy.
With Traefik#
Traefik v3 has a separate Swarm provider; the v2 setting providers.docker.swarmMode=true stops it from starting. In Swarm, Traefik reads labels of services, so they go under deploy: labels:, and Swarm gives it no port information, so the loadbalancer.server.port label is required (both from the official Traefik pages).
Save as traefik.yml (dummy e-mail; Let's Encrypt staging first, so a mistake does not use up the real limits):
services:
traefik:
image: traefik:v3.8.0
command:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
- "--providers.swarm.exposedbydefault=false"
- "--providers.swarm.network=proxy"
- "--entrypoints.http.address=:80"
- "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.http.http.redirections.entrypoint.permanent=true"
- "--entrypoints.https.address=:443"
- "[email protected]"
- "--certificatesresolvers.le.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=http"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik_certs:/letsencrypt
networks:
- proxy
deploy:
placement:
constraints:
- node.role == manager
- node.labels.swarmpit == data
networks:
proxy:
external: true
volumes:
traefik_certs:
Add these labels to the app service in swarmpit.yml, inside its existing deploy: block (replace swarmpit.example.com, a dummy, with your name):
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.swarmpit.rule=Host(`swarmpit.example.com`)"
- "traefik.http.routers.swarmpit.entrypoints=https"
- "traefik.http.routers.swarmpit.tls=true"
- "traefik.http.routers.swarmpit.tls.certresolver=le"
- "traefik.http.routers.swarmpit.service=swarmpit"
- "traefik.http.services.swarmpit.loadbalancer.server.port=8080"
Deploy Traefik, then redeploy Swarmpit (our Traefik guide explains entrypoints, le and the staging switch):
docker stack deploy -c traefik.yml traefik docker stack deploy -c swarmpit.yml swarmpit docker service logs --tail 50 traefik_traefik curl -k -I https://swarmpit.example.com
The staging certificate is not trusted by browsers (hence -k). When the log shows no error, delete the caserver line and start fresh so the staging certificate is dropped (on the manager, after the stack is gone):
docker stack rm traefik docker volume rm traefik_traefik_certs docker stack deploy -c traefik.yml traefik
The backend port is 8080 (inside the container), not 888.
Without Traefik: Caddy#
Caddy gets a Let's Encrypt certificate by itself. Run it as a Swarm service on the proxy network and reach the app by its service name. Save as Caddyfile in ~/docker_volumes/swarmpit:
swarmpit.example.com {
reverse_proxy swarmpit_app:8080
}
Home only, no public domain: use Caddy's own local certificate (tls internal; trust Caddy's root as in our Caddy guide):
swarmpit.home.arpa {
tls internal
reverse_proxy swarmpit_app:8080
}
Save as caddy.yml:
services:
caddy:
image: caddy:2.11.9
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
configs:
- source: caddyfile_v1
target: /etc/caddy/Caddyfile
volumes:
- caddy_data:/data
- caddy_config:/config
networks:
- proxy
deploy:
placement:
constraints:
- node.role == manager
- node.labels.swarmpit == data
configs:
caddyfile_v1:
file: ./Caddyfile
networks:
proxy:
external: true
volumes:
caddy_data:
caddy_config:
docker stack deploy -c caddy.yml caddy docker stack deploy -c swarmpit.yml swarmpit curl -I https://swarmpit.example.com
For a public name, DNS must point at the manager and ports 80 and 443 must reach it; the caddy_data volume holds the certificates, so keep it. Docker configs cannot be edited: to change the Caddyfile, use a new config name (caddyfile_v2). We did not run Caddy or Traefik on a swarm. A Caddy installed as a package on the manager also works, but then it proxies to localhost:888 and that port must stay blocked from outside (the Docker docs warn that published ports bypass ufw rules).
Check it worked. curl -I returns HTTP/2 200 (or a redirect to the login), and the browser shows a padlock at your Swarmpit name.
Security and testing#
| Control | How |
|---|---|
| Docker socket | The app and every agent mount /var/run/docker.sock: root-level power over the machine. :ro stops file changes, not Docker API commands. Swarmpit documents SWARMPIT_DOCKER_SOCK=http://<endpoint>:2375 and the agent reads DOCKER_HOST for a proxy (our guide); we did not test it |
| Who can reach the UI | LAN or VPN, plus HTTPS and a strong password. Swarmpit has users with the roles admin, user and viewer |
| Agent endpoint | In 1.10, POST /events accepts anonymous posts (the agent cannot send a token). Do not put Swarmpit on the open internet |
| Swarm ports | 2377, 7946 and 4789 only between your machines. Never forward them on your router |
| Secrets | Admin password in a Docker secret, nothing real in Git |
| Old components | CouchDB 2.3.0 and the Java runtime are old (issue 752, open). Scan with Trivy |
Quick tests on the manager:
docker node ls docker stack services swarmpit docker service logs --tail 100 swarmpit_app docker service logs --tail 100 swarmpit_agent
Common mistakes#
| Mistake | Why it happens | Do this instead |
|---|---|---|
Agent log: client version 1.35 is too old. Minimum supported API version is 1.44 (issue 714) | Docker 29.0 raised the minimum API; the agent asks for 1.35 | Set DOCKER_API_VERSION=1.44 on the agent and SWARMPIT_DOCKER_API=1.44 on the app (Step 4) |
Charts empty, /api/stats answers {"error":"Statistics not ready"} (issue 735) | latest builds from April to August 2026 demanded a login for the agent's posts. Fixed on master on 21 August 2026 | Pin swarmpit/swarmpit:1.10 with swarmpit/agent:2.2, as a commenter there did |
swarmpit/install:1.10 fails (issue 746) | The website names a tag that is not on Docker Hub (checked 5 Dec 2026) | Use our stack file, or the installer tag 1.9 from the README |
Ignoring unsupported options: build (moby issue 29940) | docker stack deploy never builds | Build, push to a registry, then use image: |
network "bridge" is declared as external, but it is not in the right scope: "local" instead of "swarm" (moby issue 32957) | Across machines a stack needs swarm-scope networks | docker network create --driver overlay proxy |
port '80' is already in use by service 'sun_proxy' (...) (moby issue 33160) | A published port belongs to the whole swarm | One proxy owns 80 and 443: Traefik or Caddy |
| CouchDB restarts every 10 to 30 seconds, empty task log (issue 697, open) | The 256M limit in the official file is too small for some setups | Raise the db limit (we start at 512M) |
| Data gone after a redeploy | Local volumes are per machine and the task moved | Pin db and influxdb with the node label (Step 3) |
| Edited a config file, nothing changed (moby issue 35048) | Docker configs and secrets are immutable | Use a new config name (caddyfile_v2) |
AI assistants: traefik.* labels under labels:, or no port label, or port 888 | Habit from plain Compose; Swarm gives Traefik no port | Labels under deploy: labels:, loadbalancer.server.port=8080 |
AI assistants: providers.docker.swarmMode=true, which stops v3 with Docker provider `swarmMode` option has been removed in v3, please use the Swarm Provider instead (coolify issue 4130) | Old Traefik v2 guides | providers.swarm (see the Traefik section) |
Tip: On
HTTP/502from Traefik, check: labels underdeploy:, app and Traefik on the sameproxynetwork, port label 8080.
Tip: Never change a running stack only in the Swarmpit screens. Edit the file in Git and run
docker stack deployagain.
Troubleshooting#
| Problem | Solution |
|---|---|
A service stays at 0/1 | docker service ps --no-trunc swarmpit_<name> shows the reason (image, constraints, memory) |
no suitable node (scheduling constraints not satisfied on 1 node) | The Step 3 label is missing: docker node update --label-add swarmpit=data <manager-node-name> |
"Create first user" screen although users.yaml is set | Check docker service logs swarmpit_app and that the secret and config exist. A missing secret creates no user and says nothing |
| Statistics or a worker node missing | docker service logs swarmpit_agent; each machine needs an agent task and open overlay ports |
docker node ls hangs, nothing can be changed | The manager is down or quorum is lost. Running services stay up |
Windows or Mac: Cannot connect to the Docker daemon | docker context use swarm-lab; check that ssh <user>@<manager-ip> works without a prompt |
Exact error texts#
client version 1.35 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version, thenpanic: Event collector is broken. Shutdown!!!(issue 714): Docker Engine 29.0 to 29.2 without the API setting.Permissions 0444 for '/root/.ssh/id_rsa' are too open.(issue 482, open): a secret'smode: 0600was lost after a deploy through the UI.incompatible deprecated static option found(Traefik, coolify issue 4130): Traefik v3 with the oldswarmModesetting.
Known bugs (open, December 2026)#
482 secret modes, 697 CouchDB memory, 746 installer command, 752 Java runtime. The fixes for 714 and 735 are on master, not in release 1.10. We found nothing that stops a normal install.
Updates and backups#
Update Swarmpit. Watch the releases page (new ones are rare), read the notes, back up, change the image tag in swarmpit.yml and run docker stack deploy -c swarmpit.yml swarmpit again. Before a new Docker Engine major version, check Swarmpit's issues: Docker 29.0 broke the agent.
What to back up. The two volumes (swarmpit_db-data: users and settings; swarmpit_influx-data: statistics), plus swarmpit.yml, config/users.yaml and your own stack files, which are the real configuration. The swarm's own state (including secrets) lives on the managers; the Docker docs describe backing up /var/lib/docker/swarm, which we did not do here. Keep your real secrets in a password manager.
The script stops both databases briefly. Run it on the labelled manager, which holds the volumes. We did not run it.
Linux and Mac#
Save as ~/docker_volumes/swarmpit/backup.sh:
#!/usr/bin/env bash set -euo pipefail base="$HOME/docker_volumes/swarmpit" name="swarmpit-data-$(date +%F).tar.gz" docker service scale swarmpit_db=0 swarmpit_influxdb=0 trap 'docker service scale swarmpit_db=1 swarmpit_influxdb=1' EXIT sleep 15 docker run --rm \ -v swarmpit_db-data:/db:ro -v swarmpit_influx-data:/influx:ro \ -v "$base/backups":/backup alpine:3.22 \ sh -c "tar -czf /backup/$name -C / db influx && chmod 600 /backup/$name"
Run chmod 700 on it and add this line with crontab -e (03:00 daily):
0 3 * * * /home/<your-user>/docker_volumes/swarmpit/backup.sh
Windows (PowerShell)#
The data lives on the Linux manager, so schedule the Linux script there with cron. From your PC you can run it once by hand:
ssh <user>@<manager-ip> "~/docker_volumes/swarmpit/backup.sh"
Restore test#
Unpack the newest archive into a throwaway volume (do this before you need it):
docker run --rm -v swarmpit_restore_test:/data \ -v "$HOME/docker_volumes/swarmpit/backups":/backup:ro alpine:3.22 \ sh -c "tar -xzf /backup/swarmpit-data-<date>.tar.gz -C /data && ls /data/db /data/influx" docker volume rm swarmpit_restore_test
You should see the database files. A real restore: scale both services to 0, unpack into the real volumes, scale back to 1.
Performance and resources#
The stack file reserves about 800 MB on the manager (app 512, CouchDB 128, InfluxDB 128, agent 32); other machines only run the agent (32 MB reserved, 64 MB limit). We measured none of this: run docker stats on each machine. Two levers from the docs: without graphs, remove SWARMPIT_INFLUXDB (the config doc says statistics are then off) and the influxdb service; the agent's STATS_FREQUENCY (default 30) makes it report less often.
Swarmpit, Nomad or Rancher?#
| Tool | What it is | Pick it when |
|---|---|---|
| Swarmpit on Swarm | Docker's own clustering plus a small web UI | You know Docker Compose and want the smallest step to several machines |
| Nomad | A separate scheduler that also runs non-container jobs | You want one scheduler for containers, binaries and VMs |
| Rancher | A web UI for Kubernetes clusters | You want Kubernetes (see our Kubernetes introduction) |
Our reading, not a benchmark: Swarm is the least to learn but has the smallest ecosystem.
FAQ#
Do I need two machines? No. One machine works as a swarm of one. More machines add capacity, but the databases stay on one of them.
Can Swarmpit manage plain docker compose containers? No, only Swarm services and stacks. (The README says it is self-hosted and gathers no metrics; we did not audit the code.)
Does it run on a Raspberry Pi? The README lists Linux on x86 and ARM, with a docker-compose.arm.yml that swaps in a community CouchDB image (treehouses/couchdb:2.3.1) and influxdb:1.7. We did not test ARM, and the official couchdb:2.3.0 image is amd64 only.
Can it deploy from a private registry? The README says you can link Docker Hub or your own registry. Issue 707 (open) reports a Docker Hub login failure, so test it first.
Sources#
- Swarmpit at tag 1.10: README, release 1.10 (16 April 2026), stack file, ARM stack file, configuration, user configuration, users source, agent README; Docker Hub tags (app, agent, installer) checked 5 December 2026
- Docker: Swarm overview, getting started and ports, join nodes, managers and quorum, deploy a stack, secrets, configs, services, Engine 29 release notes, firewalls and ufw
- Traefik v3.8.0: Swarm provider, Swarm labels, v2 to v3 migration; Caddy reverse_proxy
- Issues read: swarmpit 482, 697, 707, 714, 719, 735, 746, 752; moby 29940, 32957, 33160, 35048; coolify 4130
Checked against the official docs on 2026-12-05. Nothing was run on a real machine by DIY Lab Hub; the commands come from the docs, the source files and the issues above.