Skip to content

daniseijo/multi-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi Postgres

Based on postgres:10-alpine.

This is a first version so it doesn't handle a lot of errors.

To use this image add the following environment variables:

PG_DATABASES=database1,database2,database3
PG_USERS=user1,user2,user3
PG_PASSWORDS=password1,password2,password3

Be sure to have the same number of databases, users and passwords.

docker-compose.yml example:

version: "3.5"
services:
  multi-db:
    image: daniseijo/multi-postgres
    ports:
      - 5432:5432
    environment:
      PG_DATABASES: database1,database2,database3
      PG_USERS: user1,user2,user3
      PG_PASSWORDS: password1,password2,password3

About

A docker image based on postgres:10-alpine that allows multiple databases in one container

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published