Created
November 13, 2022 11:54
-
-
Save chaudharisuresh997/029dbe91609d946f89c08702ccaa9010 to your computer and use it in GitHub Desktop.
elasticsearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.0" | |
services: | |
elasticsearch: | |
container_name: es-container | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.1 | |
#6.4.3 | |
#8.3.2 | |
#7.3.0 | |
#6.4.3 | |
environment: | |
- "ES_JAVA_OPTS=-Xms2g -Xmx4g" | |
- xpack.security.enabled=false | |
- discovery.type=single-node | |
# - cluster.name= elasticsearch | |
# - node.name=node-1 | |
# - transport.host=0.0.0.0 | |
# - transport.tcp.port= 9300 | |
# - http.port= 9200 | |
# - network.host= 0.0.0.0 | |
# - discovery.type= single-node | |
# number_of_nodes=2 | |
- network.host= 0.0.0.0 | |
ulimits: | |
memlock: -1 # https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html | |
nofile: 65535 # https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html | |
nproc: 4096 # https://www.elastic.co/guide/en/elasticsearch/reference/current/max-number-of-threads.html | |
networks: | |
- es-net | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
kibana: | |
container_name: kb-container | |
image: docker.elastic.co/kibana/kibana:6.7.1 | |
environment: | |
- ELASTICSEARCH_HOSTS=http://es-container:9200 | |
networks: | |
- es-net | |
depends_on: | |
- elasticsearch | |
ports: | |
- 5601:5601 | |
networks: | |
es-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment