Docker Compose 知识点

Please note that this configuration exposes port 9200 on all network interfaces, and given how Docker manipulates iptables on Linux, this means that your Elasticsearch cluster is publicly accessible, potentially ignoring any firewall settings. If you don’t want to expose port 9200 and instead use a reverse proxy, replace 9200:9200 with 127.0.0.1:9200:9200 in the docker-compose.yml file. Elasticsearch will then only be accessible from the host machine itself.
出处:https://www.elastic.co/guide/en/elasticsearch/reference/7.16/docker.html#docker-compose-file

posted on 2022-12-03 21:33  cag2050  阅读(22)  评论(0编辑  收藏  举报

导航