Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom docker service hostname #1061

Open
PixelFederico opened this issue Jan 3, 2025 · 0 comments
Open

Custom docker service hostname #1061

PixelFederico opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@PixelFederico
Copy link

PixelFederico commented Jan 3, 2025

What problem will this feature address?

From what i understand from issues and messages on the discord server it is a known problem that people can't run dokploy on proxmox lxc, the solution i'm about to report will fix all the problems

Describe the solution you'd like

With proxmox lxc we just need to use the docker service's hostname instead of the docker service's name when making connection calls. So, to fix that problem we just need the possibility to customize the hostname (--hostname on creation of the docker services) of all dokploy services and applications created of the same. When i change the hostname of a service it's important to automatically (at least the dokploy's important services like redis) call the hostname instead of the name of the service

Example 1:
The name of the redis service is dokploy-redis
The hostname of the redis service is dokploy-redis-host
All calls to redis will be with dokploy-redis-host name and not anymore dokploy-redis

Example 2:
The name of the redis service is dokploy-redis
The hostname of the redis service is not specified
All calls to redis will be with dokploy-redis name

Describe alternatives you've considered

For the dokploy's services (like dokploy-redis) you can make the possibility to not automatically create them itself but give us the possibility to create our services with custom hostname. However, for the dokploy's applications we still need the possibility to change his hostname or you can use a predictable one like appname-service

Additional context

It would be also nice if you combine the two solutions, so i can choose to change the hostname or directly use my own services instead of the automatically generated dokploy services

Will you send a PR to implement it?

Maybe, need help

@PixelFederico PixelFederico added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant