Dokploy / Dokploy/dokploy

Database Port Forwarding

Open
#1,741 9 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

What problem will this feature address?

When I use the Dokploy DB service I am not able to expose a port to the host like in Docker Compose, unless of course I manually expose it through the command line. This would be useful as then we could still leverage the Dokploy build in backup and restore while providing a secure way to tunnel to the server without exposing the port to the public.

Describe the solution you'd like

I successful solution would be to add a field to allow us to forward ports to the host. Not just external like the current implementation.

Describe alternatives you've considered

I could manually run a docker service update
--publish-add target=5432,published=,protocol=tcp,mode=host

Problem is when I redeploy it gets wiped out.

Additional context

I may try and implement this when I have some time if nobody gets to it first.

Will you send a PR to implement it?

No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Dokploy DB service configuration and redeploy path, comparing its current external port handling with Docker Compose and the stated docker service update command. Done means a host port-forwarding field is persisted through redeploys without requiring manual commands, with behavior verified for the supported database services.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
databases, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.