Docker ASP.NET Core shared mount permissions

A friend and I are working on a web tool. This tool is designed to aid in the information collection about fallen soldiers during the second world war. The tool is created using ASP.NET. Now that we have made some progress, we would like to host this as a beta version. This way, the volunteers from the museum can test certain features and give feedback.

For the hosting we use a Linux server, this is a VPS that I hire for some hobby projects. In the future, this will move towards their host. I have installed docker and published the first version to docker hub. When I run the project, everything works as expected. But now I have added 2 mount points so that the data uploaded to the site doesn't disappear whenever I try to update to a new version.

This is the compose file that I use:

version: '2'
services:
  db4045:
    image: vanbassum/db4045:V00.01.00
    container_name: db4045
    environment:
      - TZ=Europe/Amsterdam
    user: 1000:1000
    ports:
      - 80:80
    volumes:
      - /opt/db4045/data:/app/wwwroot 
      - /opt/db4045/appsettings.json:/app/appsettings.json
      

But for some reason, the project can't read the appsettings.json. Also, the data folder stays empty. I've spent some time checking for information on the internet, but nothing seems to work. Maybe someone can point me in the right direction? I have to admit, Linux and its permissions is one of the sources for my headaches.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum