Docker Compose to mirror our databases
Replica user credentials must be configured. Also, please configure the public port for the database
This process will create the database folder and will initialize the service. If you already have a running database, please move to ./data/source_db
This process will modify the postgresql.conf
file and the pg_hba.conf
file. It will also create the replica user.
Some of the step 2 changes need a restart, please restart the container
Replica user credentials must be configured. Also, please configure the public port for the database. Additionally, one must configure the host and port where the source database is hosted. Keep in mind the container needs access to it.
This process should backup the source database and create the folder with the needed configuration.