fix(learninggoalhub): pin nginx upstream to the unique server container name#9
Merged
Merged
Conversation
…er name The web container also sits on the shared hestia-edge network, where another app's compose service named `server` registers the same generic DNS alias and shadows our upstream — nginx then proxies /api to the wrong app's container (502 on staging since examlense joined hestia-edge). Resolve the Spring server by its unique container_name instead.
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.
What changed and why
Staging has served 502 for all learninggoalhub API calls since examlense's server joined the shared
hestia-edgenetwork (#6): Compose registers the service nameserveras a DNS alias there, and our web container (also onhestia-edge) resolved its nginx upstreamserverto the examlense container instead of our own Spring server.client/nginx.conf: proxy tolearninggoalhub-server:8080(uniquecontainer_name, only resolvable on our private network) instead of the generic service name.infra/traefik/README.md: document the naming rule for services joininghestia-edge.How it was tested
docker execfrom the web container showedserverresolving to 192.168.2.5 (= examlense-server, connection refused) whilelearninggoalhub-serverruns healthy at 192.168.1.3.nginx -tpasses with the updated config (nginx:alpine).