Files not getting stored properly in Azure File Share

Tejas Hegde 1 Reputation point
2022-12-24T06:47:55.087+00:00

Hello Experts,

I have deployed a docker container as a web app. If I use WEBSITES_ENABLE_PERSISTENT_APP_STORAGE the data gets stored in the app storage. However, I want to use Azure File Share for better results.

My container basically is a database application that uses XAMPP server. The database files are stored in the location: /opt/lampp/var/mysql in the case of my container which uses Ubuntu.

The contents of this directory are as follows:

a214daf4f291.err a214daf4f291.pid aria_log.00000001 aria_log_control
ib_logfile0 ib_logfile1 ibdata1 ibtmp1 multi-master.info
mysql mysql.sock performance_schema phpmyadmin test

where the last lines correspond to folders.

I am able to connect to the file share, but the result is as follows:
273823-capture3.jpg

I am not able to figure out why all files and folders inside the mysql directory are not getting stored in the Azure file share. I deployed the web app using a docker compose file as follows:

----------

version: '3.3'

services:
db:
image: testosreg.azurecr.io/webimage
volumes:
- db-data:/opt/lampp/var/mysql

volumes:
db-data:

----------

where db-data is the name of the Azure Storage Mount for the web app.

I followed this video for deploying the web app: https://www.youtube.com/watch?v=q7J050yovuo

Any help or suggestions in this regard?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.