79541417

Date: 2025-03-28 12:30:50
Score: 1
Natty:
Report link

To connect to db in container from another container, here create_engine(f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}")

the self.host should be your db docker container name as in docker compose. Should work like charm with postgres or other db.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vtysch