0

How do we connect gunicorn flask container with Maria DB container using sqlalchemy? I have simple hello world app running in docker container as well Maria DB in another container? How do I update the hello world app container program with sqlalchemy?sqlalchemy program needed and docker file is needed and configuration changed required for Maria DB?

Solomon
  • 33
  • 7
  • can you post your docker compose and network configuration? Usually one would use the docker hostnames to connect the two. – jman Jun 14 '19 at 01:50
  • As of now I am not using docker compose instead separately building the container for gunicorn flask and Maria db.my requirement here to read tables using sqlalchemy – Solomon Jun 14 '19 at 02:30
  • you might want to check this: https://stackoverflow.com/questions/30545023/how-to-communicate-between-docker-containers-via-hostname/35184695#35184695 Unless there is a reason you don't want to set up a compose file, I would recommend using docker compose. – jman Jun 14 '19 at 03:06
  • My requirement is not this, i have following code – Solomon Jun 14 '19 at 08:42

0 Answers0