Open RobbieLD opened 1 year ago
@RobbieLD
Thanks for raising this issue! It looks you have already resolved it by change the docker-compose.yml file.
Do you mind to file a PR to update the sample file in Azurite Readme to fix this issue: https://github.com/Azure/Azurite#docker-compose
Which service(blob, file, queue, table) does this issue concern?
blob, files, queue, table
Which version of the Azurite was used?
3.21.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
14.17
What problem was encountered?
When mounting a volume to persist blobs across container restarts they blobs and not persisted.
Steps to reproduce the issue?
Have you found a mitigation/solution?
Yes, to fix this you need to map
/opt/azurite/<path>
and use the-l <path>
option on start up. This is because the app is storing the data in the home directory of the app rather than in '/data'. An example of a working docker compose file is given for completeness