If the postgres container doesn't start properly, then something's wrong with the config. Most likely you are trying to expose port 5432 to the host network, but you have postgres already installed there, so the ports conflict.
You can check for those errors with journalctl.
Make sure the user "bind" and whatever the owner of that folder outside of the container is, have the same user number.