This is insecure, fast-to-setup setup of simple master-slave replication with dockerized PostgreSQL installation.
Note, that below works with version postgres version 12.2
: postgres (PostgreSQL) 12.2 (Debian 12.2-1.pgdg100+1)
.
Preparation:
# This is where your primary database files will be stored