Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
段孔乐
docker-elk
Commits
cc2f64be
Commit
cc2f64be
authored
Aug 14, 2018
by
ffknob
Committed by
Antoine Cotten
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Set ELK components version from .env file" (#206)" (#303)
This reverts commit
8f5b242d
.
parent
1ac84fbe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
4 deletions
+34
-4
.env
.env
+1
-0
README.md
README.md
+18
-1
docker-compose.yml
docker-compose.yml
+6
-0
Dockerfile
elasticsearch/Dockerfile
+3
-1
Dockerfile
kibana/Dockerfile
+3
-1
Dockerfile
logstash/Dockerfile
+3
-1
No files found.
.env
0 → 100644
View file @
cc2f64be
ELK_VERSION=6.3.0
README.md
View file @
cc2f64be
...
@@ -43,12 +43,14 @@ Based on the official Docker images from Elastic:
...
@@ -43,12 +43,14 @@ Based on the official Docker images from Elastic:
6.
[
JVM tuning
](
#jvm-tuning
)
6.
[
JVM tuning
](
#jvm-tuning
)
*
[
How can I specify the amount of memory used by a service?
](
#how-can-i-specify-the-amount-of-memory-used-by-a-service
)
*
[
How can I specify the amount of memory used by a service?
](
#how-can-i-specify-the-amount-of-memory-used-by-a-service
)
*
[
How can I enable a remote JMX connection to a service?
](
#how-can-i-enable-a-remote-jmx-connection-to-a-service
)
*
[
How can I enable a remote JMX connection to a service?
](
#how-can-i-enable-a-remote-jmx-connection-to-a-service
)
7.
[
Updates
](
#updates
)
*
[
Using a newer stack version
](
#using-a-newer-stack-version
)
## Requirements
## Requirements
### Host setup
### Host setup
1.
Install
[
Docker
](
https://www.docker.com/community-edition#/download
)
version
**1
.10.0
+**
1.
Install
[
Docker
](
https://www.docker.com/community-edition#/download
)
version
**1
7.03
+**
2.
Install
[
Docker Compose
](
https://docs.docker.com/compose/install/
)
version
**1.6.0+**
2.
Install
[
Docker Compose
](
https://docs.docker.com/compose/install/
)
version
**1.6.0+**
3.
Clone this repository
3.
Clone this repository
...
@@ -257,3 +259,18 @@ logstash:
...
@@ -257,3 +259,18 @@ logstash:
environment
:
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"
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"
```
```
## Updates
### Using a newer stack version
To use a different Elastic Stack version than the one currently available in the repository, simply change the version
number inside the
`.env`
file, and rebuild the stack with:
```
console
$
docker-compose build
$
docker-compose up
```
**NOTE**
: Always pay attention to the
[
upgrade instructions
](
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html
)
for each individual component before performing a stack upgrade.
docker-compose.yml
View file @
cc2f64be
...
@@ -5,6 +5,8 @@ services:
...
@@ -5,6 +5,8 @@ services:
elasticsearch
:
elasticsearch
:
build
:
build
:
context
:
elasticsearch/
context
:
elasticsearch/
args
:
ELK_VERSION
:
$ELK_VERSION
volumes
:
volumes
:
-
./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
-
./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports
:
ports
:
...
@@ -18,6 +20,8 @@ services:
...
@@ -18,6 +20,8 @@ services:
logstash
:
logstash
:
build
:
build
:
context
:
logstash/
context
:
logstash/
args
:
ELK_VERSION
:
$ELK_VERSION
volumes
:
volumes
:
-
./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
-
./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
-
./logstash/pipeline:/usr/share/logstash/pipeline:ro
-
./logstash/pipeline:/usr/share/logstash/pipeline:ro
...
@@ -33,6 +37,8 @@ services:
...
@@ -33,6 +37,8 @@ services:
kibana
:
kibana
:
build
:
build
:
context
:
kibana/
context
:
kibana/
args
:
ELK_VERSION
:
$ELK_VERSION
volumes
:
volumes
:
-
./kibana/config/:/usr/share/kibana/config:ro
-
./kibana/config/:/usr/share/kibana/config:ro
ports
:
ports
:
...
...
elasticsearch/Dockerfile
View file @
cc2f64be
ARG
ELK_VERSION
# https://github.com/elastic/elasticsearch-docker
# https://github.com/elastic/elasticsearch-docker
FROM
docker.elastic.co/elasticsearch/elasticsearch-oss:
6.3.0
FROM
docker.elastic.co/elasticsearch/elasticsearch-oss:
${ELK_VERSION}
# Add your elasticsearch plugins setup here
# Add your elasticsearch plugins setup here
# Example: RUN elasticsearch-plugin install analysis-icu
# Example: RUN elasticsearch-plugin install analysis-icu
kibana/Dockerfile
View file @
cc2f64be
ARG
ELK_VERSION
# https://github.com/elastic/kibana-docker
# https://github.com/elastic/kibana-docker
FROM
docker.elastic.co/kibana/kibana-oss:
6.3.0
FROM
docker.elastic.co/kibana/kibana-oss:
${ELK_VERSION}
# Add your kibana plugins setup here
# Add your kibana plugins setup here
# Example: RUN kibana-plugin install <name|url>
# Example: RUN kibana-plugin install <name|url>
logstash/Dockerfile
View file @
cc2f64be
ARG
ELK_VERSION
# https://github.com/elastic/logstash-docker
# https://github.com/elastic/logstash-docker
FROM
docker.elastic.co/logstash/logstash-oss:
6.3.0
FROM
docker.elastic.co/logstash/logstash-oss:
${ELK_VERSION}
# Add your logstash plugins setup here
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json
# Example: RUN logstash-plugin install logstash-filter-json
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