Unlike <=1.7, 2.1 binds it's network to 127.0.0.1 (docs).
This means when a linked app tries to access it, it wouldn't be able to reach it.
The solution is to manually to set network.host: 0.0.0.0 in the elasticsearch.yml in /var/lib/dokku/services/elasticsearch/<app>/config/elasticsearch.yml then restart the container.
Unlike <=1.7, 2.1 binds it's network to
127.0.0.1
(docs).This means when a linked app tries to access it, it wouldn't be able to reach it.
The solution is to manually to set
network.host: 0.0.0.0
in theelasticsearch.yml
in/var/lib/dokku/services/elasticsearch/<app>/config/elasticsearch.yml
then restart the container.