Repository navigation
Document Traefik nxmeta-web rationale in compose example - #386
Merged
Merged
Conversation
Copilot flagged on PR #381 that the production compose example uses service/hostname `nxmeta` but the Traefik HostRegexp matches `^nxmeta-web...`, asking whether they should match. They shouldn't: the container is multi-homed — bare `nxmeta` resolves to the dedicated macvlan IP for direct access, while `nxmeta-web` is a CNAME pointing at Traefik for the SSL frontend. Traefik handles only the `-web` hostname; the bare hostname bypasses it. Add four lines of inline comment in the compose example so future readers (and future automated reviews) don't ask the same question.
There was a problem hiding this comment.
Pull request overview
Adds inline documentation to the production Docker Compose example in README.md explaining why the Traefik router matches nxmeta-web... while the service/hostname is nxmeta, aligning the example with the real-world “direct macvlan access + Traefik-terminated web hostname” setup.
Changes:
- Document the intended
nxmeta(direct/macvlan) vsnxmeta-web(Traefik/SSL) hostname split directly inside the Traefik labels block.
Copilot caught that "bare nxmeta resolves to the dedicated macvlan IP above" oversold what `hostname:` + `ipv4_address:` do — they only set the container's own hostname and bind it to that IP. The DNS records that make `nxmeta` and `nxmeta-web` actually resolve from clients must be configured externally (LAN DNS or hosts file). Rewrite the comment to call out that the two-hostname pattern is a DNS configuration the user provides, with concrete shapes for both records.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Copilot flagged on PR #381 (round-5 and round-6) that the production compose example uses service/hostname
nxmetabut the TraefikHostRegexpmatches^nxmeta-web.... The reviewer's concern was that the example would be unreachable through Traefik.The mismatch is intentional. The container is multi-homed:
nxmetaresolves to the dedicated macvlan IP set via${NXMETA_IP}/${NXMETA_MAC}in the compose, used for direct access.nxmeta-webis a CNAME pointing at the Traefik host for SSL termination. Only the-webhostname is fronted by Traefik; the bare hostname bypasses it.This is the real-world pattern from the user's homelab. Without the inline rationale, future readers (and future automated reviews) hit the same question.
Change
Four lines of comment in
README.mdinside the Traefik labels block.Test plan