ELASTIC_VERSION=5.6.9
#ELASTIC_VERSION=6.3.0
view raw .env hosted with ❤ by GitHub
version: '2'
services:
elasticsearch1:
container_name: elasticsearch1
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
container_name: elasticsearch1
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch2,elasticsearch3"
- "discovery.zen.minimum_master_nodes=2"
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata_revolution1:/usr/share/elasticsearch/data
ports:
- 9201:9200
networks:
- esnet
elasticsearch2:
container_name: elasticsearch2
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch2
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch1,elasticsearch3"
- "discovery.zen.minimum_master_nodes=2"
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata_revolution2:/usr/share/elasticsearch/data
ports:
- 9202:9200
networks:
- esnet
elasticsearch3:
container_name: elasticsearch3
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch3
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch1,elasticsearch2"
- "discovery.zen.minimum_master_nodes=2"
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata_revolution3:/usr/share/elasticsearch/data
ports:
- 9203:9200
networks:
- esnet
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION
ports:
- 5601:5601
environment:
- "ELASTICSEARCH_URL=http://elasticsearch1:9200"
ports:
- 5601:5601
links:
- elasticsearch1
networks:
- esnet
volumes:
esdata_revolution1:
driver: local
esdata_revolution2:
driver: local
esdata_revolution3:
driver: local
networks:
esnet:
view raw docker-compose.yml hosted with ❤ by GitHub