parent
d5647295ca
commit
7430a34dd5
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,6 +5,10 @@
|
|||||||
/.project
|
/.project
|
||||||
.docker-sync
|
.docker-sync
|
||||||
/jenkins/jenkins_home
|
/jenkins/jenkins_home
|
||||||
|
|
||||||
|
/logstash/pipeline/*.conf
|
||||||
|
/logstash/config/pipelines.yml
|
||||||
|
|
||||||
/nginx/ssl/*.crt
|
/nginx/ssl/*.crt
|
||||||
/nginx/ssl/*.key
|
/nginx/ssl/*.key
|
||||||
/nginx/ssl/*.csr
|
/nginx/ssl/*.csr
|
||||||
|
@ -602,6 +602,24 @@ services:
|
|||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### Logstash ##############################################
|
||||||
|
logstash:
|
||||||
|
build: ./logstash
|
||||||
|
volumes:
|
||||||
|
- './logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml'
|
||||||
|
- './logstash/pipeline:/usr/share/logstash/pipeline'
|
||||||
|
ports:
|
||||||
|
- '5001:5001'
|
||||||
|
environment:
|
||||||
|
LS_JAVA_OPTS: '-Xmx1g -Xms1g'
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
depends_on:
|
||||||
|
- elasticsearch
|
||||||
|
|
||||||
### Kibana ##############################################
|
### Kibana ##############################################
|
||||||
kibana:
|
kibana:
|
||||||
build: ./kibana
|
build: ./kibana
|
||||||
|
10
logstash/Dockerfile
Normal file
10
logstash/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM docker.elastic.co/logstash/logstash:6.4.2
|
||||||
|
|
||||||
|
USER root
|
||||||
|
RUN rm -f /usr/share/logstash/pipeline/logstash.conf
|
||||||
|
RUN curl -L -o /usr/share/logstash/lib/mysql-connector-java-5.1.47.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar
|
||||||
|
ADD ./pipeline/ /usr/share/logstash/pipeline/
|
||||||
|
ADD ./config/ /usr/share/logstash/config/
|
||||||
|
|
||||||
|
RUN logstash-plugin install logstash-input-jdbc
|
||||||
|
|
5
logstash/config/logstash.yml
Normal file
5
logstash/config/logstash.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
http.host: "0.0.0.0"
|
||||||
|
|
||||||
|
xpack.monitoring.enabled: false
|
||||||
|
config.reload.automatic: true
|
||||||
|
path.config: "/usr/share/logstash/pipeline"
|
0
logstash/pipeline/.gitkeep
Normal file
0
logstash/pipeline/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user