How to deploy something on a worker node #2620
Answered
by
djsisson
luizkowalski
asked this question in
Q&A
Answered by
djsisson
Sep 19, 2025
Replies: 4 comments 37 replies
|
I still couldn't manage to deploy something on a worker node...bumping in case someone else can help |
22 replies
|
The only way I was able to get my Swarm setup to work to then deploy to worker node is by making sure that the advertised IP address for both manager and worker nodes are explicitly set: # new manager:
ADVERTISE_ADDR=<manager_ip> https://dokploy.com/install.sh | sh
# -OR- existing manager:
docker swarm leave
docker swarm init --advertise-addr=<manager_ip>
# worker (token from Cluster -> Add Node):
docker swarm leave
docker swarm join --token <token> --advertise-addr=<worker_ip> <manager_ip>:2377 |
2 replies
|
How do we "select" for it to be deployed on a worker server exactly? I don't see an option to do that |
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

these are both incorrect
they need to be a lan ip, outside the docker address pools
the first one is a docker bridge, the second one is a public ip
if youre running this on a public ip, you are exposing everything over the internet
if this is hetzner make sure you set up a private network
then use the private network ip as your advertise address, you can leave the listen address as 0.0.0.0 as long as you block the ports using hetzner firewall, otherwise also set listen address
if you set your hetzner network to be 10.0.0.x then make sure you alter the address pools so you don't overlap
currently because your nodes are on different subnets, they cannot communicate, and should definitely no…