Skip to content

Instantly share code, notes, and snippets.

@leonaugusto16
Created March 11, 2020 12:12
Show Gist options
  • Save leonaugusto16/ad83a2fa9d7fe46185b130278dc5902f to your computer and use it in GitHub Desktop.
Save leonaugusto16/ad83a2fa9d7fe46185b130278dc5902f to your computer and use it in GitHub Desktop.
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.1
container_name: elasticsearch
environment:
#- node.name=es01
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
#- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.6.1
ports:
- "5601:5601"
networks:
- elastic
volumes:
data01:
driver: local
networks:
elastic:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment