![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/6dfa35bc-6517-4bca-81dc-368535349714.webp)
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
I 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 to you, I solved the problem!
Thanks!
I also added
depends_on: - db
to docker-compose.yaml and fixed the issue!