File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- # Using multiple databases with the official PostgreSQL Docker image
2-
31A PostgreSQL docker build that allows the creation of multiple databases in one container
42
53This build uses a script to create additional databases and grants all privileges to the databases to the admin user.
64
7- ## Usage
5+ This is built on top of the offical PostgreSQL image
6+
7+ ## docker-compose.yml
88
99 postgres:
1010 restart: always
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ services:
77 postgres :
88 restart : always
99 image : irobbierobinson/multi-db-postgres:latest
10+ build :
11+ context : ./
12+ dockerfile : Dockerfile
1013 volumes :
1114 - ./pg-db-data:/var/lib/postgresql/data
1215 environment :
@@ -15,7 +18,7 @@ services:
1518 - POSTGRES_DB=postgres
1619 - POSTGRES_ADDITIONAL_DATABASES=db,keycloak
1720 ports :
18- - 5432 :5432
21+ - 5434 :5432
1922 networks :
2023 - backend
2124networks :
You can’t perform that action at this time.
0 commit comments