Cant connect to postgres from another python container. All started from same docker-compose

Please, format your post according to the following guide by editing it

In short: Use code blocks, not quotes, especiially for yaml codes. Thank you.

Also please, share error messages, any info, details that helps us to help you without guessing.