How to deploy something on a worker node #2620
Replies: 5 comments 37 replies
|
I still couldn't manage to deploy something on a worker node...bumping in case someone else can help |
|
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 |
|
How do we "select" for it to be deployed on a worker server exactly? I don't see an option to do that |
|
I don't get it. I installed Dokploy on a small vm and a worker node on a big vm. In my naive world I now could setup a app via template (i did with gitlab) and it will run on a worker node. Nope. it crashed the leader node... So ok... new setup, added a constrain... crashed... yea deploy constrains don't apply for what ever reason to templates... without warning, blew up the leader node again. Next try remote server... theoretical maybe possible... but there I can not tunnel traffic trough the leader node and use the internal network... yay... Just sain. I rly thought this ecosystem is doing smarter than this in 2026, but docker ecosystems still feel like the most unstable and unintuitive pice of software, the opposite of what it is marketed as. It's frustrating. Rly frustrating. And not sain Azure for example is better. That's way more crap than this. |

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…