I used the dotnet publish command to containerize my ASP.NET Core application. I then integrated this container into a Docker Compose setup by defining it in a YAML file (docker-compose.yml). However, my ASP.NET Core application requires specific access permissions for two folders: Resources for localization and App_Data for saving images.
In my docker-compose.yml, I attempted to configure these permissions as follows:
I used the
dotnet publish
command to containerize my ASP.NET Core application. I then integrated this container into a Docker Compose setup by defining it in a YAML file (docker-compose.yml
). However, my ASP.NET Core application requires specific access permissions for two folders:Resources
for localization andApp_Data
for saving images.In my
docker-compose.yml
, I attempted to configure these permissions as follows:I need guidance on properly granting read-only access to the
Resources
folder and full access to theApp_Data
folder within Docker Compose.