How to use persistent storage with Web Apps by docker-compose?
Tomohiro.H
1
Reputation point
If you have any advices, please give me!
I tried to use persistent storage following this article (https://learn.microsoft.com/en-US/azure/app-service/containers/tutorial-multi-container-app), but couldn't use...It start initialize after stop the service few days.
At local, I wrote docker-compose.yml below.
services:
testdb:
volumes:
- testdb_data:/test
…
testapps:
volumes:
- testapps_data:/test
…
volumes:
testdb_data:
driver: local
testapps_data:
driver: local
And At Web Apps, I changed like this. This work well without persistent storage.
services:
testdb:
volumes:
- testdb_data:/test
…
testapp:
volumes:
- testapp_data:/test
…
volumes:
testdb_data:
driver: local
driver_opts:
device: ${WEBAPP_STORAGE_HOME}
testapp_data:
driver: local
driver_opts:
device: ${WEBAPP_STORAGE_HOME}
I can see the "WEBSITES_ENABLE_APP_SERVICE_STORAGE=TRUE " in log-stream, so the option is active to use persistent storage...
Thank you.
Sign in to answer