You are connecting all the containers in this config via container network. Look at the environment variables set in the Kibana config:
Here you can see, that the hostname of the other container running ElasticSearch is
elasticsearch_1. In a similar manner, the hostname of the container running Kibana woud be
kibana. These hostnames are only availiable inside the container network.
So in your Nginx config, you’ll have to proxy_pass to
http://kibana:5601 instead of
CLICK HERE to find out more related problems solutions.