When fresh docker-compose up, MySql server start slower then .net5 API Server and throw error Unable to connect to any of the specified MySQL hosts.

Whenever fresh (first time, or up after clear all volume) docker-compose up, MySql server start slower then.net5 API Server and throw Error Unable to connect to any of the specified MySQL hosts.

My Configuration Docker with Window 10 WSL2

To see my docker-compose.yml and docker-compose.override.yml please see on my StackOverflow thread because the code formate is not correct here.

https://stackoverflow.com/questions/67905353/docker-compose-first-time-up-and-build-mysql-server-start-slower-than-net5-api

I can resolve this issue after manually restart the .net5 API.

Does anyone have a solution related to this issue?

submitted by /u/amit_singh_rawat
[link] [comments]


Go to Source of this post
Author Of this post: /u/amit_singh_rawat
Title Of post: When fresh docker-compose up, MySql server start slower then .net5 API Server and throw error Unable to connect to any of the specified MySQL hosts.
Author Link: {authorlink}