Same problem in postgres container. Docker compose should allow to set permission when mounting the volumes.