Closed jpkontreras closed 4 years ago
OS : mac OS 10.14.4 mojave
my first guess would be that your application tries to connect before the docker-host container is started. depends_on
will only ensure that the dependen container will be started but it does not ensure that the service is available.
you may can try to start th.e dockhost
service first with a seperate command e.g.
docker-compose up dockerhost
and than docker-compose up
to ramp-up the rest.
I will try that. I'll let you know Thanks
tried the solution but the result is the same Some questions
the host address is always the service name itself in your case dockerhost
Hello I want to connect to a postgres DB on my local machine through a container im using docker compose v3
docker-compose.yml
host.dockerfile
When executed shows dockerhost as unknown . What it could be ?
Im active if you want more info