Skip to content

Instantly share code, notes, and snippets.

@2bethere
Last active April 8, 2021 17:01
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 2bethere/40ce5f295c275c39e15149ebd7f4700e to your computer and use it in GitHub Desktop.
Save 2bethere/40ce5f295c275c39e15149ebd7f4700e to your computer and use it in GitHub Desktop.
Single node ELK stack
version: '2.2'
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:latest
container_name: es
environment:
- node.name=es
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data:/usr/share/elasticsearch/data
ports:
- 9200:9200
kib:
image: docker.elastic.co/kibana/kibana:latest
container_name: kib
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://es:9200
ELASTICSEARCH_HOSTS: '["http://es:9200"]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment