persistent data with mongodb #4361
Answered
by
davidfowl
viniciusverasdossantos
asked this question in
Q&A
-
How can I use persistent data with mongodb? every time I restart I lose all data. I didn't find where to activate data volume |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Jun 2, 2024
Replies: 1 comment 1 reply
-
Each database has a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davidfowl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Each database has a
WithDataVolume
method that can be used to persist data.https://learn.microsoft.com/en-us/dotnet/api/aspire.hosting.mongodbbuilderextensions.withdatavolume?view=dotnet-aspire-8.0&viewFallbackFrom=dotnet-aspire-8.0.1