Skip to content

Instantly share code, notes, and snippets.

@wh13371
Created August 26, 2020 12:45
Show Gist options
  • Save wh13371/1c9e2787695bd72f3f36957800444edf to your computer and use it in GitHub Desktop.
Save wh13371/1c9e2787695bd72f3f36957800444edf to your computer and use it in GitHub Desktop.
A simple Elasticsearch and Kibana stack
version: '3'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
network_mode: host
kib01:
image: docker.elastic.co/kibana/kibana:7.9.0
container_name: kib01
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://x.x.x.x:9200
ELASTICSEARCH_HOSTS: http://x.x.x.x:9200
network_mode: host
volumes:
data01:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment