Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: '3.7'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: elasticsearch01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- xpack.security.enabled=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
- config01:/usr/share/elasticsearch/config
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.10.0
container_name: kibana
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://es01:9200
ELASTICSEARCH_HOSTS: http://es01:9200
ELASTICSEARCH_USERNAME: kibana_system
ELASTICSEARCH_PASSWORD: YWQoszCGsGBw2ix23vPu
networks:
- elastic
volumes:
data01:
driver: local
config01:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment