Assumptions: private ip is 10.4.0.3
Casepro error
Is the server running on host "10.4.0.3" and accepting
casepro_1 | TCP/IP connections on port 5432?
RapidPro error
redis.exceptions.ConnectionError: Error 110 connecting to 10.4.0.3:6379. Operation timed out
Host machine
1. /etc/postgresql/10/main/postgresql.conf
listen_addresses = '*'
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
2. /etc/redis/redis.conf
bind 10.4.0.3 ::1
protected-mode no
port 6379
3.
local all postgres trust
# TYPE DATABASE USER ADDRESS METHOD
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all all md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5