Reputation: 876
I need to change the port number of Elasticsearch that is running in Docker in host network mode.
Port mapping does not apply in host network mode.
The relevent part of my docker-compose.yml file looks like this:
services:
elasticsearch_place_data:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: elasticsearch_place_data
restart: on-failure
environment:
- discovery.type=single-node
- http.host=0.0.0.0
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- xpack.security.enabled=false
volumes:
- es_place_data:/usr/share/elasticsearch/data
networks_mode: host
Upvotes: 0
Views: 1298
Reputation: 2064
you will want to use http.port
and transport.port
as per the documentation
Upvotes: 1
Reputation: 1
Seems like there are only two options:
Upvotes: 0