Unfortunately, I don't have the code for this anymore. However, if you look at some of the full app build videos I have, they use a very similar setup and the code for most of those are in the description.
Great tutorial, thank you! Would it make sense to have the python app running in its own docker container? If so, what would the docker compose file for that look like?
Yes it would. You can create another "service" in the docker-compose file. Make sure both the Python container and the Postgres container are in the same network so that they can talk to each other.
unable to connect to the host name "database"..any help on this?
Do you have the docker container running?
Reason: image not found, Library not loaded: @rpath/libpq.5.dylib any help?
thanks for the video. I did not understand how you had connected to the postgres container through python script. Can you explain me that?
he used psycopg2
That is correct.
So good tutorial, but I have a timed out error when mi API is trying to connect with postgres, do you know what can i do to resolve it?
Did you try resetting the Postgres Server? A common reason for getting timeouts is if you have a long running connection.
It would be great if you could share the code as well!
Unfortunately, I don't have the code for this anymore. However, if you look at some of the full app build videos I have, they use a very similar setup and the code for most of those are in the description.
Great tutorial, thank you! Would it make sense to have the python app running in its own docker container? If so, what would the docker compose file for that look like?
Yes it would. You can create another "service" in the docker-compose file. Make sure both the Python container and the Postgres container are in the same network so that they can talk to each other.
thanks