services: postgres-replica: image: postgres:17 container_name: postgres-replica restart: unless-stopped ports: - "7447:5432" environment: PRIMARY_HOST: 57.128.212.174 PRIMARY_PORT: 7447 REPLICATION_USER: replicator REPLICATION_PASSWORD: replicator_password volumes: - ./data:/var/lib/postgresql/data - ./postgresql.conf:/etc/postgresql/postgresql.conf:ro - ./pg_hba.conf:/etc/postgresql/pg_hba.conf:ro - ./replica-entrypoint.sh:/replica-entrypoint.sh:ro command: ["/bin/bash", "/replica-entrypoint.sh"]