Logical replication from Posgres on Windows to Postgres in docker container on Linux

Hi,

I’m using the bitnami/postgresql:latest image and I’m able to connect from a Win32 program (Delphi using the Unidac drivers) to PostgreSQL database running on Ubuntu server in a docker container.

The users will use a Win32 program to capture field survey data offline and then they want to replicate the data to the PostgreSQL database on Ubuntu server.

It seems to me I should use logical replication because a user may work with only a subset of the total master database on the Ubuntu server.

I must be able to do a mapping of the postgresql.conf and the pg_hba.conf files.
The part of my docker-compose.yml file to run PostgreSQL in a docker container:

  postgres:
    restart: unless-stopped
    container_name: postgres
    image: bitnami/postgresql:latest
    environment:
      - TZ="Africa/Johannesburg"
      - POSTGRES_DATABASE=sdb_risk
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=xxxxxxxxxxxxxxxx
    ports:
      - 5432:5432
      - 5433:5433
    volumes:
      - ./postgres_data:/bitnami/postgresql
#      - .pg_hba.conf:/bitnami/postgresql/conf/pg_hba.conf
#      - .postgresql.conf:/bitnami/postgresql/conf/postgresql.conf 
    networks:
      - dreamfactory-tier
      - app-tier

My question is: Am I on the right track to do a logical replication and if so, how do I map the pg_hba.conf and postgresql.conf files?

Regards,

Nols Smit

Hello @nols.smit,

Hi, We provide technical support for our containers in our Github repositories. Our team is actively monitoring them and will be glad to help you there, usually within a business day, and the whole community will benefit from your contribution. Could you please post your question by creating a new issue in the postgresql repo?

https://github.com/bitnami/bitnami-docker-postgresql/issues

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.