Last active
April 8, 2021 17:01
-
-
Save 2bethere/40ce5f295c275c39e15149ebd7f4700e to your computer and use it in GitHub Desktop.
Single node ELK stack
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: '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