-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sql Server container port is not accessible after Aspire is shutdown #7046
Comments
cc @danegsta |
@lupusbytes quick fyi - when using |
My guess here is that So If that is correct, it is not a feature, but just a bug in the app model. |
Actually, the feature that we might be missing is "change the type of the endpoint depending on whether the container is persistent" |
Can confirm as well, not able to connect to local sql server database running in docker container via Azure Data Studio without aspire running. |
We should just do this automatically right? |
@danegsta is working on making non-proxied endpoints the default for persistent containers. |
Is there an existing issue for this?
Describe the bug
I'm using Aspire to orchestrate my webapp and my database. I'm also using this database as part of several other projects, like test project.
Here's my setup:
The thing is: when my Aspire app si running, I can access the database on port 1433 from other applications, even SSMS. However, when I shutdown my Aspire project, this database is no more accessible, even though it's marked as persistent. The container is still there, but the random port is the only one that allows me to acces the database, not the 1433 that I've specified.
Have I missed something in my configuration?
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
.NET 9, Aspire 9
Anything else?
No response
The text was updated successfully, but these errors were encountered: