Possible Permission Issues
As we are using Bitnami’s public images for Mongodb we need to look at their docs for any mongodb related issues. In recent versions they are defaulting to non-root containers for better security so it is better to setup without the root user. What that means is that your db volume folder needs to give access to 1001 user.
You can remove following from the docker-compose file and give permissions to your shared volume and then try again.