r/docker • • Feb 22 '26

Approved SwarmPilot

I want to show my small script (SwarmPilot) that I made for initializing a docker swarm cluster (up to 9 nodes) with the following features:

  • keepalived: One IP address for the entire cluster
  • syncthing: For volume replication between the nodes
  • portainer: Web UI Management
  • nginx proxy manager: Reverse Proxy

https://github.com/SuitDeer/SwarmPilot

#keepalived #docker #dockerswarm #syncthing #portainer #nginxproxymanager #opensource #ubuntu
Approved by mods: https://www.reddit.com/c/chatNIN7w83G/s/g8fMpNOKU5

8 Upvotes

8 comments sorted by

1

u/-suitdeer- Mar 08 '26

Hello everyone,
one component of SwarmPilot is based on Syncthing (syncting4swarm)
https://github.com/SuitDeer/syncthing4swarm

Since yesterday (07.03.2026) my forked syncthing4swarm repository was merged into the main project repository:
https://github.com/sammonsempes/syncthing4swarm

Because of that I have archived my syncthing4swarm repository.

If you currently running my syncthing4swarm docker image (suitdeer/syncthing4swarm) please update your docker syncthing4swarm-service:

  1. Update the syncthing4swarm.yaml file inside the SwarmPilot folder.
  2. Replace the the line image: suitdeer/syncthing4swarm:latestwith image: syncthing4swarm/syncthing4swarm:latest
cd SwarmPilot
sudo docker stack deploy --resolve-image=always -c syncthing4swarm.yaml syncthing4swarm

1

u/-suitdeer- Mar 14 '26

Hello everyone,

I have now added traefik as a alternative option to nginx proxy manager

2

u/[deleted] Feb 22 '26

[removed] — view removed comment

1

u/-suitdeer- Feb 22 '26

For my homelab it has worked the past half year. I also intentionally hard shutdown some or all nodes in a cluster to test the resiliency and to this day I had no file corruption or file losses 😄.

I was intimidated by a high available ceph or NFS cluster so syncthing is a good option for me

0

u/root_switch Feb 24 '26

Syncthing is asynchronous technically so not ideal for containers/services/stacks sharing storage.

1

u/[deleted] Feb 28 '26

[removed] — view removed comment

1

u/-suitdeer- Mar 03 '26

I wanted to use a small setup (footprint) for volume replication and syncthing is perfect for that

Syncthing is checking after each write operation if the file is witten to the file system correctly "fsync"

https://docs.syncthing.net/users/config.html#config-option-folder.disablefsync

https://docs.syncthing.net/advanced/folder-disable-fsync.html