A simple logical replication setup with native postgres logical replication
pip install docker-compose
docker-compose up
docker exec -it pg-logical-rep-compose_primary_1 psql -h localhost -U postgres
docker exec -it pg-logical-rep-compose_secondary_1 psql -h localhost -U postgres