This repository used to store the preferred configuration for running PostgreSQL database on top of Docker Container
With this configuration you can further configure the following detail:
- Installing additional CDC Replication Plugins inside PostgreSQL database; i.e.
wal2json - Configure
postgresql.confstored inside/var/lib/postgresql/databy modifiying the configuration stored in./config
We recommend the host for this container has equal or higher configuration version than this repository developer, with the following requirement:
- Docker:
Docker version 24.0.2, build cb74dfc - Docker Compose:
Docker Compose version v2.19.1 - Docker Compose Script:
3.8
-
Clone and go the this cloned repository folder by running the following command:
REPO_LOCATION=<your_desired_location> git clone https://github.com/itsasyraf/docker-postgres.git ${REPO_LOCATION} cd ${REPO_LOCATION} -
Create
.envfile followingtemplate.envfile provided in this repo to fit your desired configuration -
(Optional) Update
postgresql.confto fit your desired configuration -
Start your docker container by running the following command
docker compose down && docker compose build && docker compose up -d