Comment puis-je configurer DNS pour que mon conteneur php-fpm sache envoyer certains hôtes au conteneur nginx avec docker-compose?

I have two containers:



I have these two that work great.

I have a REST API that I am developing, it is a different project.

I need my web application to be able to send API calls to this

However, php-fpm doesn't know how to fix it.

Should I set up a DNS server container and make php-fpm use the DNS server?

And does the DNS server route specific hosts to nginx and then it all rolls back to Google

TweakboxDoes anyone have an example of how to achieve this with docker-compose?
Dernière édition: