RE: DOCKER CONTAINERS CANNOT ACCESS HOST REDIS 6379 AND POSTGRES 5432

14 views
Skip to first unread message

Juliet Nelly

unread,
Jun 20, 2025, 10:34:21 AMJun 20
to rapidpro-dev
Hello Devs

Could you help me resolve this issue?
I am currently running rapidpro on Azure. My containers, rapidpro, casepro, sidekick, keep exiting. 
Your help is much appreciated.

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


Reply all
Reply to author
Forward
0 new messages