Created
November 6, 2019 10:08
-
-
Save yuyasugano/3f7c7e0e7365c76473db1e0e0e4e33a4 to your computer and use it in GitHub Desktop.
Elasticsearch & Kibana on Docker
This file contains hidden or 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' | |
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