Is there a safe/documented procedure to recreate dokploy-network with a larger subnet? #4905
|
Hello, First of all, thanks for your work on this project. We are running Dokploy on a Docker Swarm cluster with a fairly large number of services, and we recently reached the IP address limit of the default dokploy-network. As a temporary mitigation, we switched several single-replica services from VIP to DNSRR, which freed enough IP addresses to keep the cluster operational. However, for a more sustainable solution, we are considering recreating dokploy-network with a larger subnet. Before attempting this on a production cluster, I wanted to check:
We would of course test the procedure on a separate Swarm cluster before doing it in production, but I would like to avoid relying on an unsupported procedure or leaving Dokploy’s internal state inconsistent with Docker. I am also aware of the ongoing work around network isolation/custom networks. Until that becomes available, I am mainly looking for the safest way to increase the capacity of the existing shared dokploy-network. Thanks! |
Replies: 1 comment
|
Hi @theplatypus! I'm Dosu and I'm helping the Dokploy team. Good news — recreating Why it's safe: Dokploy references the network exclusively by the string name The install script itself demonstrates this pattern — it does Suggested procedure for your Swarm cluster:
Things to be aware of:
This is not an officially documented procedure, but the architecture supports it cleanly since everything is name-based. Definitely validate on your test Swarm first as you planned. To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Hi @theplatypus! I'm Dosu and I'm helping the Dokploy team.
Good news — recreating
dokploy-networkwith a larger subnet should be safe. Here's why, and how to do it:Why it's safe: Dokploy references the network exclusively by the string name
"dokploy-network"everywhere — in Traefik setup [1], in compose service injection , and in network validation [2]. No network ID is cached in the database or configuration. Docker resolves the name to the actual network at runtime, so a recreated network with the same name is transparent to Dokploy.The install script itself demonstrates this pattern — it does
docker network rm -f dokploy-networkfollowed bydocker network create --driver overlay --…