Answer the question
In order to leave comments, you need to log in
How to set up Nuxt (SSR) + docker-compose correctly?
There is a container with a nuxt application, and a container with an api backend for this application, all running locally with a url like site.local.
from the browser, requests to api.site.local pass without errors, but I need to send a request to the api container from the nuxt container, and this is where the problems begin.
axios returns an error:
Error: getaddrinfo ENOTFOUND api.site.local api.site.local:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'api.site.local',
host: 'api.site.local'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question