Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Ant_Devops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
Ant_Devops
Commits
1cf1fe2a
Commit
1cf1fe2a
authored
Mar 04, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update shell
parent
1c6353cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
roles/elk/files/elk.sh
+24
-19
No files found.
roles/elk/files/elk.sh
View file @
1cf1fe2a
...
...
@@ -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
label
s:
io.rancher.container.pull_image: always
- 9200:9200
network
s:
- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment