Actually, using system volume from docker can't be write as docker user because it's created as root.
As in postgresql docker image, we should :
- execute entrypoint as root
- create configuration files and folder if required
- chown them as docker user,
- execute final command as docker user