refactor(docker): dedicated external gateway networks per service - #229
Merged
Conversation
Replace the single shared `proxy` external network with three dedicated external networks — gateway-niles, gateway-vikunja, gateway-whatsapp — so each service is only attached to the homelab-gateway segment it needs: - niles_core -> gateway-niles - vikunja -> gateway-vikunja - evolution_api-> gateway-whatsapp This isolates the reverse-proxy segments (least-privilege networking) instead of sharing one flat proxy network across all upstreams. Networks are declared `external: true` and created/managed by homelab-gateway. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Was
Ersetzt das gemeinsame
proxy-External-Network durch drei dedizierte externe Netze — eines pro Service, das über homelab-gateway erreichbar sein muss:niles_coregateway-nilesvikunjagateway-vikunjaevolution_apigateway-whatsappWarum
Statt eines flachen
proxy-Netzwerks über alle Upstreams hinweg wird jeder Reverse-Proxy-Segment isoliert (Least-Privilege-Networking). Services hängen nur noch an dem Gateway-Segment, das sie tatsächlich brauchen.Die Netzwerke sind
external: trueund werden von homelab-gateway erstellt/verwaltet.Voraussetzung / Deployment-Hinweis
Vor dem Hochfahren müssen die externen Netze existieren (durch homelab-gateway angelegt):
gateway-niles,gateway-vikunja,gateway-whatsapp. Andernfalls schlägtdocker compose upmit „network not found" fehl.🤖 Generated with Claude Code