Commit 1cf1fe2a by ChongmingDu

update shell

parent 1c6353cd
......@@ -14,28 +14,32 @@ cat<< EOF >docker-compose.yml
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.12
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
container_name: elasticsearch
environment:
discovery.type: single-node
stdin_open: true
tty: true
volumes:
- ./es_data:/
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200/tcp
labels:
io.rancher.container.pull_image: always
- 9200:9200
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:5.6.12
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
stdin_open: true
tty: true
links:
- elasticsearch:elasticsearch
image: docker.elastic.co/kibana/kibana:6.6.1
ports:
- 5601:5601/tcp
labels:
io.rancher.container.pull_image: always
- 5601:5601
networks:
- esnet
volumes:
esdata1:
driver: local
networks:
esnet:
EOF
docker-compose up &
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment