Skip to content

Instantly share code, notes, and snippets.

@santhosh-chinnasamy
Last active January 11, 2022 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santhosh-chinnasamy/299dde1c7c980e057e6b9ae737e73115 to your computer and use it in GitHub Desktop.
Save santhosh-chinnasamy/299dde1c7c980e057e6b9ae737e73115 to your computer and use it in GitHub Desktop.
Elaastic and Kibana compose files
version: "3"
services:
elasticsearch:
image: elasticsearch:7.16.2
container_name: elasticsearch
restart: unless-stopped
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- esnet
kibana:
image: kibana:7.16.2
container_name: kibana
restart: unless-stopped
environment:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
expose:
- 5601
ports:
- "5601:5601"
networks:
- esnet
volumes:
esdata:
driver: local
networks:
esnet:
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601
server.host: '0.0.0.0'
elasticsearch.url: 'http://elasticsearch:9200'
xpack.security.enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment