Repository navigation
Give each template its own block of local ports - #50
Merged
Merged
Conversation
Every template bound 8080, 4317, 4318 and 18888 on the host, so two stacks couldn't run side by side. Each template now publishes everything in its own block of ten (Minimal API 8710, MCP 8720, GraphQL 8730, Web API 8740, Lambda Function 8750), with the same offsets in every block. Inside the containers the app stays on 8080.
This was referenced Nov 6, 2026
Merged
Build Pipeline✅ Ready to merge. Every stage passed.
Commit |
87x0 had no room past six templates, so the blocks now start at 7310, which leaves space for fifteen. The app also listens on its own port inside its container, so dotnet run, docker run and Docker Compose all use one number. Lambda's emulator stays on 8080 inside, because it can't be moved.
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
Every template published the same ports, so you couldn't run two stacks side by side. Each template now has its own block of ten ports: Minimal API 7310, MCP 7320, GraphQL 7330, Web API 7340 and Lambda Function 7350, with every port at the same place in each block. The 7300s–7400s leave room for fifteen templates. The emulator is on 7350, the dashboard on 7352 and the collector on 7353 and 7354. Lambda's runtime interface emulator always listens on 8080 inside its container, so only the host side of its mapping moves.
docs/RUN.mdgets a Ports section. The shareddocker-and-composeskill describes the scheme, and the sharedserilogandtelemetryskills now point atdocs/RUN.mdinstead of naming a port, so all five stay identical.Related issues
Closes LeanMeanCleanApps/.github#86
Type of change
Shared layers
Checklist
dotnet buildanddotnet testpass locally with no warnings..agents/skills.