Last active
February 13, 2025 18:07
-
-
Save isaqueprofeta/e67e856e6e0e4e65be5386c872e5b2f3 to your computer and use it in GitHub Desktop.
Simple elasticsearch with kibana docker-compose
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' | |
# Don't forget the sysctl configs: | |
# sysctl -w vm.max_map_count=262144 | |
# echo "vm.max_map_count = 262144" >> /etc/sysctl.conf | |
services: | |
elasticsearch: | |
container_name: elasticsearch | |
hostname: elasticsearch | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.5.0 | |
restart: 'no' | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
# volumes: | |
# mkdir /var/lib/elasticsearch && chown -R 1000:1000 /var/lib/elasticsearch | |
# - /var/lib/elasticsearch:/usr/share/elasticsearch/data | |
environment: | |
ES_JAVA_OPTS: '-Xms2g -Xmx2g' | |
cluster.name: elasticluster | |
bootstrap.memory_lock: 'true' | |
network.host: 0.0.0.0 | |
http.port: 9200 | |
discovery.type: 'single-node' | |
indices.query.bool.max_clause_count: 8192 | |
search.max_buckets: 100000 | |
action.destructive_requires_name: 'true' | |
kibana: | |
container_name: kibana | |
hostname: kibana | |
image: docker.elastic.co/kibana/kibana-oss:7.5.0 | |
restart: 'no' | |
depends_on: | |
- elasticsearch | |
environment: | |
SERVER_HOST: 0.0.0.0 | |
SERVER_PORT: 5601 | |
SERVER_MAXPAYLOADBYTES: 4194304 | |
ELASTICSEARCH_HOSTS: "http://elasticsearch:9200" | |
LOGGING_DEST: stdout | |
LOGGING_QUIET: 'false' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment