Commit 1cf1fe2a by ChongmingDu

update shell

parent 1c6353cd
...@@ -14,28 +14,32 @@ cat<< EOF >docker-compose.yml ...@@ -14,28 +14,32 @@ cat<< EOF >docker-compose.yml
version: '2.2' version: '2.2'
services: services:
elasticsearch: elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.12 image: docker.elastic.co/elasticsearch/elasticsearch:6.6.1
container_name: elasticsearch
environment: environment:
discovery.type: single-node - cluster.name=docker-cluster
stdin_open: true - bootstrap.memory_lock=true
tty: true - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes: ulimits:
- ./es_data:/ memlock:
soft: -1
hard: -1
ports: ports:
- 9200:9200/tcp - 9200:9200
labels: networks:
io.rancher.container.pull_image: always - esnet
kibana: kibana:
image: docker.elastic.co/kibana/kibana:5.6.12 image: docker.elastic.co/kibana/kibana:6.6.1
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
stdin_open: true
tty: true
links:
- elasticsearch:elasticsearch
ports: ports:
- 5601:5601/tcp - 5601:5601
labels: networks:
io.rancher.container.pull_image: always - esnet
volumes:
esdata1:
driver: local
networks:
esnet:
EOF EOF
docker-compose up & 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