Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created November 6, 2019 10:08
Show Gist options
  • Save yuyasugano/3f7c7e0e7365c76473db1e0e0e4e33a4 to your computer and use it in GitHub Desktop.
Save yuyasugano/3f7c7e0e7365c76473db1e0e0e4e33a4 to your computer and use it in GitHub Desktop.
Elasticsearch & Kibana on Docker
version: '3'
services:
elasticsearch:
build: elasticsearch
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
expose:
- 9300
networks:
- elastic
kibana:
build: kibana
container_name: kibana
ports:
- 5601:5601
networks:
- elastic
volumes:
es-data:
driver: local
networks:
elastic:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment