hi @Anonymous ,
Thank you for the prompt response. Appreciate that. :)
I have tried to use ${WEBAPP_STORAGE_HOME}
to map the volumes using ${WEBAPP_STORAGE_HOME}/cronData:/task/cronData )
, but I found that since in the beginning the directory ( ${WEBAPP_STORAGE_HOME}/cronData
) will be empty, so if I mount my volume to that directory, then my original data in /task/cronData
will be wiped out. But I do need the initial data in /task/cronData
which is written in in the building stage.
I guess the things I want to achieve is files from the container mounted to the host(https://stackoverflow.com/questions/42395748/docker-compose-volume-is-empty-even-from-initialize) rather than the other way around. And it seems that there is no way for us to run the docker commands to the web app host machine, so I don't think I can use the walk around suggested from the above link.
I think BYOS can be a good solution. I can write the data into blob storage in the building stage and mount it back to the containers. However, after reading the documents, I am still not quite sure how to properly configure this. I can create a New Azure Storage Mount like how you did, then what I should specify in my docker-compose.yml and docker-compose-configure.yml file?
Thank you!