Allow Dokploy and traefic panel UI to bind to 127.0.0.1 (don’t publish :3000)
What problem will this feature address?
When self-hosted, the Dokploy UI always binds to 0.0.0.0:3000 in host mode. This makes the dashboard publicly accessible at http://
Describe the solution you'd like
Add a configuration option (e.g., BIND_ADDRESS=127.0.0.1) or route the UI only through the built-in Traefik. This would ensure the dashboard is only accessible via a secure domain (with HTTPS and middleware) instead of a raw public IP.
Describe alternatives you've considered
Cloud provider firewalls (Hetzner/DO): works, but adds extra complexity.
Removing the Swarm published port manually: fragile, breaks after updates.
VPN/Tunnel (Tailscale, Cloudflare): works, but not beginner-friendly and adds overhead.
Additional context
Other platforms (Portainer, CapRover, Coolify) allow localhost-only binding or force proxy access for their admin UIs. Supporting this in Dokploy would reduce the attack surface and align with security best practices.
Will you send a PR to implement it?
No
@Austindelic, would you share how you managed to block port 3000 from publishing? I have a VPS with all ports blocked to the internet (eth0/eth1) and with all communication through tailscale0. I managed to change the IP address via ADVERTISE_ADDR, but removing --publish from the installation script breaks the service launch, and I'm unable to block anything via the Cloud provider firewall.
Hello, on my side i juste remove the line from install, and it works as expected, could be useful to disable via an env variable
# diff -Nur install.sh install.new.sh
--- install.sh 2025-09-16 07:25:12.000000000 +0200
+++ install.new.sh 2025-10-06 18:48:14.039449354 +0200
@@ -170,7 +170,6 @@
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount type=bind,source=/etc/dokploy,target=/etc/dokploy \
--mount type=volume,source=dokploy-docker-config,target=/root/.docker \
- --publish published=3000,target=3000,mode=host \
--update-parallelism 1 \
--update-order stop-first \
--constraint 'node.role == manager' \
You probably need to flush DOCKER chain before to ensure that iptables rules are clean and clean containers /!\ NB my node only host dokploy, doing following actions will destro containers (but not data), also all projects will need a re-redeploy.
iptables -F DOCKER
docker rm -f $(docker ps -qa)
systemctl restart docker
./install.new.sh
I also closed port 80 on traefik
# /etc/dokploy/traefik/traefik.yml
...
entryPoints:
#web:
# address: :80
websecure:
address: :443
...