Running existing docker img or creating new from existing to establish connection to local mysql DB - Upwork

I have an application running on Google Cloud Platform (GCP) which connects to the elastic search, Hazelcast, MySQL, RabbitMQ, etc. I am also running that application in my local machine (windows OS) but from Intellij and everything is working fine. However, I want to run the application in my local machine without Intellij, so I tried running the docker image from GCP. Consequently, the application started running and then failed after a few seconds, as it was not able to establish a connection to my local MySQL DB from the docker container, as it has some network restrictions. I am seeking a DevOps professional who can edit and run an existing image or create a docker compose file if essential to run my docker image successfully without issues to establish connection to mySQL, Hazelcast, RabbitMQ, etc. ports. Note: I am already running my application though Intellij and it is running and able to connect to MySQL, RabbitMQ, Hazelcast ports but not able to connect when running my application from a docker container. Following is the error that I am getting after running docker image. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Connection refused (Connection refused)Budget: $15 Posted On: April 13, 2023 01:04 UTCCategory: DevOps EngineeringSkills:DevOps Engineering, Microsoft Windows, Docker, MySQL, Linux, Docker Compose Country: India click to apply

Running existing docker img or creating new from existing to establish connection to local mysql DB - Upwork

I have an application running on Google Cloud Platform (GCP) which connects to the elastic search, Hazelcast, MySQL, RabbitMQ, etc. I am also running that application in my local machine (windows OS) but from Intellij and everything is working fine.

However, I want to run the application in my local machine without Intellij, so I tried running the docker image from GCP. Consequently, the application started running and then failed after a few seconds, as it was not able to establish a connection to my local MySQL DB from the docker container, as it has some network restrictions.

I am seeking a DevOps professional who can edit and run an existing image or create a docker compose file if essential to run my docker image successfully without issues to establish connection to mySQL, Hazelcast, RabbitMQ, etc. ports.

Note: I am already running my application though Intellij and it is running and able to connect to MySQL, RabbitMQ, Hazelcast ports but not able to connect when running my application from a docker container.

Following is the error that I am getting after running docker image.

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Connection refused (Connection refused)

Budget: $15
Posted On: April 13, 2023 01:04 UTC
Category: DevOps Engineering
Skills:DevOps Engineering, Microsoft Windows, Docker, MySQL, Linux, Docker Compose
Country: India
click to apply