[docs] Fix persistent container endpoint proxy default docs#1227
Conversation
Persistent containers use proxied endpoints by default (same as session containers), while persistent executables and projects default to proxyless endpoints. Also document that proxyless container endpoints with only a targetPort immediately allocate the targetPort as the host port. Corrects docs that previously stated all persistent resources default to proxyless endpoints. Documents changes from microsoft/aspire#17960. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates Aspire documentation to reflect the corrected endpoint proxy defaults for persistent containers (proxied by default) versus persistent executables/projects (proxyless by default), and documents the restored behavior for proxyless container endpoints that specify only targetPort.
Changes:
- Clarify that persistent containers default to proxied endpoints, while persistent executables/projects default to proxyless endpoints.
- Document that proxyless container endpoints with only
targetPortimmediately allocate the host port (no deferred allocation). - Scope “proxyless-by-default” statements in the Aspire 13.4 release notes to executables/projects (not containers).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/frontend/src/content/docs/app-host/resource-lifetimes.mdx | Updates persistent lifetime endpoint-default wording to distinguish containers vs executables/projects and notes immediate targetPort allocation for proxyless containers. |
| src/frontend/src/content/docs/fundamentals/networking-overview.mdx | Corrects proxyless endpoint definition and expands the proxyless endpoints section to reflect container vs executable/project defaults and immediate allocation behavior. |
| src/frontend/src/content/docs/whats-new/aspire-13-4.mdx | Adjusts 13.4 release notes wording so “proxyless-by-default” applies to persistent executables/projects; adds note that persistent containers remain proxied-by-default. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Reopens #1219 against
release/13.5after it was merged intorelease/13.4.Documents changes from microsoft/aspire#17960 by
@danegsta.Why this PR is needed
PR #17960 corrected a regression in Aspire 13.4 where persistent containers incorrectly defaulted to proxyless endpoints. The fix makes persistent containers behave like session containers — using proxied endpoints by default — while persistent executables and projects retain their proxyless-by-default behavior. The existing docs stated that all persistent resources default to proxyless endpoints, which is now incorrect for containers.
In addition, the PR restores the previous behavior for proxyless container endpoints that specify only a
targetPort: the target port is immediately used as the allocated host port, with no delayed allocation.Changes made
app-host/resource-lifetimes.mdx— Updated the persistent lifetime section to distinguish between containers (proxied by default) and executables/projects (proxyless by default). Added a note that proxyless container endpoints with only atargetPortimmediately allocate the target port as the host port.fundamentals/networking-overview.mdx— Corrected three locations:EndpointAnnotationproperties reference paragraphwhats-new/aspire-13-4.mdx— Corrected two locations in the persistent executable/project lifetime sections (feature spotlight Aside and breaking changes entry) to scope the proxyless-by-default statement to executables and projects only.Files modified
src/frontend/src/content/docs/app-host/resource-lifetimes.mdxsrc/frontend/src/content/docs/fundamentals/networking-overview.mdxsrc/frontend/src/content/docs/whats-new/aspire-13-4.mdx