12. ElasticSearch 클러스터 구축 시나리오
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
container_name: elasticsearch-test
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
volumes:
- ./elasticsearch_data/data/:/usr/share/elasticsearch/data:rw
ports:
- 9200:9200
labels:
- co.elastic.logs/modules=elasticsearch
- co.elastic.metrics/module=elasticsearch%