Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hiep Nguyen
docker-elk
Commits
29814aa8
Commit
29814aa8
authored
Nov 19, 2016
by
Anthony Lapenna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use depends_on in compose file and update README
parent
24371b94
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
19 deletions
+17
-19
README.md
README.md
+13
-2
docker-compose.yml
docker-compose.yml
+4
-0
Dockerfile
kibana/Dockerfile
+0
-7
entrypoint.sh
kibana/entrypoint.sh
+0
-10
No files found.
README.md
View file @
29814aa8
...
...
@@ -108,7 +108,9 @@ logstash:
-
./logstash/config:/etc/logstash/conf.d
ports
:
-
"
5000:5000"
links
:
networks
:
-
docker_elk
depends_on
:
-
elasticsearch
environment
:
-
LS_HEAP_SIZE=2048m
...
...
@@ -135,7 +137,9 @@ logstash:
-
./logstash/config:/etc/logstash/conf.d
ports
:
-
"
5000:5000"
links
:
networks
:
-
docker_elk
depends_on
:
-
elasticsearch
environment
:
-
LS_JAVA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=18080 -Dcom.sun.management.jmxremote.rmi.port=18080 -Djava.rmi.server.hostname=DOCKER_HOST_IP -Dcom.sun.management.jmxremote.local.only=false
...
...
@@ -157,6 +161,8 @@ elasticsearch:
-
"
9300:9300"
environment
:
ES_JAVA_OPTS
:
"
-Xms1g
-Xmx1g"
networks
:
-
docker_elk
volumes
:
-
./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
```
...
...
@@ -172,6 +178,8 @@ elasticsearch:
-
"
9300:9300"
environment
:
ES_JAVA_OPTS
:
"
-Xms1g
-Xmx1g"
networks
:
-
docker_elk
```
# Storage
...
...
@@ -185,11 +193,14 @@ In order to persist Elasticsearch data even after removing the Elasticsearch con
```
yml
elasticsearch
:
build
:
elasticsearch/
command
:
elasticsearch -Des.network.host=_non_loopback_ -Des.cluster.name
:
my-cluster
ports
:
-
"
9200:9200"
-
"
9300:9300"
environment
:
ES_JAVA_OPTS
:
"
-Xms1g
-Xmx1g"
networks
:
-
docker_elk
volumes
:
-
/path/to/storage:/usr/share/elasticsearch/data
```
...
...
docker-compose.yml
View file @
29814aa8
...
...
@@ -19,6 +19,8 @@ services:
-
"
5000:5000"
networks
:
-
docker_elk
depends_on
:
-
elasticsearch
kibana
:
build
:
kibana/
volumes
:
...
...
@@ -27,6 +29,8 @@ services:
-
"
5601:5601"
networks
:
-
docker_elk
depends_on
:
-
elasticsearch
networks
:
docker_elk
:
...
...
kibana/Dockerfile
View file @
29814aa8
FROM
kibana:5
RUN
apt-get update
&&
apt-get
install
-y
netcat bzip2
COPY
entrypoint.sh /tmp/entrypoint.sh
RUN
chmod
+x /tmp/entrypoint.sh
RUN
kibana-plugin
install
x-pack
CMD
["/tmp/entrypoint.sh"]
kibana/entrypoint.sh
deleted
100644 → 0
View file @
24371b94
#!/usr/bin/env bash
# Wait for the Elasticsearch container to be ready before starting Kibana.
echo
"Stalling for Elasticsearch"
while
true
;
do
nc
-q
1 elasticsearch 9200 2>/dev/null
&&
break
done
echo
"Starting Kibana"
exec
kibana
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