Repository navigation
Use FQDNs for internal service hostnames #5808
joubertredrat
started this conversation in
Ideas
Replies: 1 comment
|
Hello, thanks for the idea! You can already do this manually. In your app or database, go to Advanced → Swarm Settings → Network, set the network to For Docker Compose, you can add the alias yourself like in your example. Having Dokploy create and show this name automatically isn't supported yet, so I'll leave this open as an idea. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dokploy currently uses standard names for services. This provides unique identifiers, but the raw service name can be difficult to recognize and distinguish in database connection strings and logs.
I’d like to propose making each service reachable through a full FQDN that keeps its service name and adds a configurable internal domain suffix. For example:
This would preserve the uniqueness of the existing service name while making it clear that the value is an internal hostname.
Current behavior
A connection string may use a service name directly as its hostname:
Although this works, the hostname does not indicate that it is an internal address. Adding a domain suffix would make the intent more apparent:
How Docker Compose supports this
Docker Compose supports setting a container hostname and adding network-level aliases. Dokploy could use a network alias to make the service name FQDN resolve to the service inside the Docker network:
The FQDN would be an alias available within the Docker network; it would not need to resolve through public DNS.
Proposed behavior
For each service, Dokploy could:
For example, if a service’s name is core-production-db-qwa21x, its internal FQDN would be:
Examples
Backward compatibility
This could be additive: Dokploy would register the new FQDN as an alias while retaining the existing service name hostname. Existing connection strings would continue to work, and users could adopt the FQDN when convenient.
Open questions
All reactions