2019-11-30 14:52:43 +01:00
2019-11-30 14:52:43 +01:00
2017-03-20 18:50:50 +01:00
2017-03-29 07:52:29 +02:00

docker-postgres-multi

Docker image to run a PostgreSQL database in a docker container with multiple users and databases.

Image is based of the official postgres:9.6 image. It modifies the docker-entrypoint.sh to allow setup of multiple users and databases. Therefore there are two new environment variables that can be set POSTGRES_USERS and POSTGRES_DATABASES. The functionality of POSTGRES_USER and POSTGRES_DB is unimpeded. If set the given user and database will be created in addition to the other given users.

Usage

docker run -p 5432:5432 --name postgres-multi
  -e POSTGRES_USERS="user1:password1|user2:password2|user3:password3"
  -e POSTGRES_DATABASES="db1:user1|db2:user2|db3:user3"
  -it --rm lmmdock/postgres-multi
S
Description
No description provided
Readme MIT
40 KiB
Languages
Shell 97.6%
Dockerfile 2.4%