docker-postgresql-multiple-databases
docker-postgresql-multiple-databases copied to clipboard
Add example to many users
Hi. In your example, there is one significant drawback. If the user or database named "$database" exists, then the script will simply stop and stop working, and the container start will hang. Let's say we did not delete the container, but simply we rebuild through the docker-compose. In my example, this is eliminated, and added it is possible, to register users and passwords explicitly. What makes creating multiple databases more flexible and convenient. People can immediately take an example, and not write, as I did.
Thanks! I'll take a look and think about it.
Hi) Have you looked? It seems a long time has passed)