You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just changed the domain names in docker-compose.yml file so api is not accessible. Also i didn't get information how to change the domain. Please help me.
My docker compose file, I just changed http://api to https://api-platform.local
Also i put the https://api-platform.local in /etc/hosts
When i run the logs from container using docker-compose logs -f the following message return. http: proxy error: dial tcp: lookup api-platform.local on 127.0.0.11:53: no such host" symfony api platform
When you run docker-compose up, the following happens:
1 - A network called myapp_default is created.
2 - A container is created using web’s configuration. It joins the network myapp_default under the name web.
3 - A container is created using db’s configuration. It joins the network myapp_default under the name db.
Each container can now look up the hostname web or db and get back the appropriate container’s IP address. For example, web’s application code could connect to the URL postgres://db:5432 and start using the Postgres database.
You are not supposed to edit http://api, this is the hostname used by your containers (vulcain and the client generator) to reach your container called "api" inside their network. You will use https://api-platform.local to reach vulcain and vulcain will use http://api to reach api.
To change the domain from /etc/hosts you need to
map it to the IP of the machine hosting docker (localhost or a virtual machine IP or whatever but not your container) :
127.0.0.1 api-platform.local
edit CORS_ALLOW_ORIGIN and TRUSTED_HOSTS in api/.env (or create api/.env.local)
I just changed the domain names in docker-compose.yml file so api is not accessible. Also i didn't get information how to change the domain. Please help me.
My docker compose file, I just changed http://api to https://api-platform.local
Also i put the https://api-platform.local in /etc/hosts
When i run the logs from container using docker-compose logs -f the following message return.
http: proxy error: dial tcp: lookup api-platform.local on 127.0.0.11:53: no such host" symfony api platform
The text was updated successfully, but these errors were encountered: