How to handle the umbraco folder in a rootless container?

Hello!

Using .NET’s containerization support through Aspire, when deploying Umbraco to Azure App Services as a container it is running under a rootless account. Umbraco is at boot trying to create required folders under /app/umbraco and it fails because it doesn’t have write permissions there. Also the MainDom lock files are written there.

The lucene index files are written to tmp already, and the media files are stored on blob storage. I can get rid of the MainDom lock files by switching to SqlMainDomLock.

  1. Can I mount a file share volume to the entire /app/umbraco folder or is that a bad idea?
  2. Should I have a separate mount for each server instance when load balancing?
  3. Should I have a separate mount for the pre-production deployment slot used to warm up before swapping into production?

Basically, what inside the umbraco folder can be shared between instances and what should never be shared?