Answer the question
In order to leave comments, you need to log in
Asyncpg in Docker - why can it crash with a No Route To Host error if there is definitely a route?
There is a group of containers that is raised by a similar file:
version: "3"
services:
ff_corecomp:
restart: always
build: ./corecomp
depends_on:
- ff_postgres
ff_postgres:
restart: always
image: "postgres"
environment:
- POSTGRES_PASSWORD=pass
await asyncpg.create_pool(
dsn="postgres://postgres:[email protected]_postgres:5432/")
Answer the question
In order to leave comments, you need to log in
I didn't quite understand what solved the problem, but it's one of the two options from this question.
Or it was a problem in TUN, and then it helped
sysctl net.bridge.bridge-nf-call-iptables=0
sysctl net.bridge.bridge-nf-call-arptables=0
sysctl net.bridge.bridge-nf-call-ip6tables=0
# Allows container to container communication, the solution to the problem
firewall-cmd --zone=public --add-masquerade --permanent
# standard http & https stuff
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
# + any other port you may need
# reload the firewall
firewall-cmd --reload
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question