Skip to content

Commit 1b6f12b

Browse files
committed
feat: added build to docker-compose, readme update for clarity
1 parent b4fa9e7 commit 1b6f12b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Using multiple databases with the official PostgreSQL Docker image
2-
31
A PostgreSQL docker build that allows the creation of multiple databases in one container
42

53
This 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

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2124
networks:

0 commit comments

Comments
 (0)