How to send a request to another microsieves in the Docker container?

Good day, there is a docker-compose the file with the services of service1, service2, postgresdb, nginx-proxy. All http requests go to nginx-proxy, for the service1, service2, no web server, only php-fpm. From the host machine everything is working fine, but now how to make http request from service1 to service2 using nginx-proxy? There is an option to record in hosts file service1 something like
service2 nginx-proxy
But what to do if a hard or no rights to edit. There is a way?
March 23rd 20 at 18:52
1 answer
March 23rd 20 at 18:54

Find more questions by tags Docker