How to bind to loopback address with docker

I'm trying to run logstash using docker (with or without compose).
I have set network.publish_host=127.0.0.1
but I still get the following:

logstash_1 | {"type": "server", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "docker-cluster", "node.name": "7a0265a90419", "message": "publish_address {127.0.0.1:9300}, bound_addresses {0.0.0.0:9300}" }
logstash_1 | {"type": "server", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "docker-cluster", "node.name": "7a0265a90419", "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks" }
logstash_1 | ERROR: [1] bootstrap checks failed

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.