The error says:- sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at “postgres” (172.18.0.2), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.
Example code block:
```
echo "I am a code."
echo "An athletic one, and I wanna run."
```
After fixing your post, please send a new comment so people are notified about the fixed content.
Thank you for the formatting. It seems the container name is correctly used to connect to the database, but something must be wrong in the database container. I don’t know that image and there is nothing on Docker Hub about it, except that it is an archived image, so you shouldn’t even use it.
Try the connection with an official postgres image. If that works, the problem is with the archived image and you should look for a supported version for what you want.
I suggested using the official image only for testing the connection. If the connection works with that, you had an application issue with the other image and you could contact the maintainer, if the image were not archived and you could find any contact info.
Then check if the postgres container is running. If it worked without modification, the modification broke it. If you “fixed” the vector issue by adding the same files that the other image had, you could end up with the same error easily. You only showed the web container logs, but it is time to check the database logs.
And please, don’t share screenshots of texts. Fortunately these images were easily readable (at least on my screen), but some users don’t even check screenshots when it shows texts as it is hard to read and impossible to quote. You can share logs the same way as you formatted your first message, so special characters will not be interpreted by the forum.
If you are using Docker Desktop, that allows copying logs as well.