Добрый день!
Помогите с настройкой postgresql в docker
Имеется 2 виртуальные машины с ip 192.168.56.101 (master) и 192.168.56.102(slave) docker-compose.yml
version: '2'
services: psql_master: image: 'docker.io/postgres:9.6.3' volumes: - '/home/vagrant/psql/data:/var/lib/postgresql/data'
recovery.conf
standby_mode = 'on' primary_conninfo = 'host=192.168.56.101 port=5432 user=postgres password=postgres' trigger_file = '/var/lib/postgresql/data/trigger'
Мастер запускается нормально, но при запуске слейва :
psql_slave_1 | LOG: database system was shut down in recovery at 2017-06-22 14:36:25 UTC psql_slave_1 | LOG: entering standby mode psql_slave_1 | LOG: redo starts at 0/C000028 psql_slave_1 | LOG: invalid record length at 0/C000108: wanted 24, got 0 psql_slave_1 | FATAL: could not connect to the primary server: could not connect to server: Connection refused psql_slave_1 | Is the server running on host «192.168.56.101» and accepting psql_slave_1 | TCP/IP connections on port 5432?