GithubHelp home page GithubHelp logo

ozgurcd / docker-postgres-multi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lmm-git/docker-postgres-multi

0.0 0.0 0.0 8 KB

docker container which can handle multiple postgres databases and users instead of just one like the offical image.

Home Page: https://hub.docker.com/r/lmmdock/postgres-multi/

License: MIT License

Shell 97.60% Dockerfile 2.40%

docker-postgres-multi's Introduction

docker-postgres-multi

This fork is based on lmm-git/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:15.41 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

docker-postgres-multi's People

Contributors

lmm-git avatar ozgurcd avatar timnn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.