I’m creating a REST API webservice in one container and a client for this WS in another container.
When the client is trying to reach the WS it cannot resolve the hostname.
I’m guessing this is because of the Docker + NGINX proxy setup that Local uses.
I’m using Guzzle when sending requests and this is the error i get:
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: api.webservice.dev (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /app/public/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
Is there a workaround for this?
Will sending requests between containers be possible in future releases?
Keep up the good work!
Dekode Interaktiv AS