mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #418] Documentation: hostname YAML property must be defined when using Docker Compose #145
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wget on GitHub (Jun 24, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/418
What is expected
When deploying Dns Proxy Server to a bunch of Docker hosts, I realized that Docker Compose deployment for which no
hostnamewas defined into the YAML file, that DPS cannot answer to the request even if the container name was the same.Example:
What is Happening
We thought that DPS could handle the Docker Container names without having to specify
hostnameinto the Docker Compose YAML file. After some tests, it appears this is needed.Changes (Optional)
Give an example with Docker Compose in the documentation and provide more explanation about the use of
hostname.@mageddo commented on GitHub (Jun 10, 2024):
Hey @wget , solve container using container
hostnameproperty or by it's container name are two individual features, they work separately. I agree a dedicated doc to explain they usage could help a lot. I tested all combinations on DPS 3.19.1-snapshot and all are looking great.Case 1
Case 2
Case 3
Case 4
hostname: wordpress-prod-db-1will work but be aware of some side effects, is better to set either thedomainoption or set a suffix domain athostnamee.g.hostname: wordpress-prod-db-1.dev.@mageddo commented on GitHub (Jun 10, 2024):
A doc explaining how to solve docker containers from hostname was created as you suggested, contributions are welcome. Feel free to reopen it if there is any missing answer related to this issue.
Thanks for your contribution.