sunwoo1524@lemmy.worldOPtoDocker@lemmy.world•Connection to server at "127.0.0.1", port 5432 failed: Connection refusedEnglish
1·
1 year agoI changed host to postgres:5432
, but python made an error.
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "postgres" to address: Temporary failure in name resolution
Thanks!
I also added
depends_on: - db
to docker-compose.yaml and fixed the issue!