|
|
@ -1,11 +1,10 @@
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
elasticsearch:
|
|
|
|
elasticsearch:
|
|
|
|
image: elasticsearch:7.14.2
|
|
|
|
image: elasticsearch:7.16.1
|
|
|
|
container_name: es
|
|
|
|
container_name: es
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
discovery.type: single-node
|
|
|
|
discovery.type: single-node
|
|
|
|
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
|
|
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
|
|
LOG4J_FORMAT_MSG_NO_LOOKUPS: true
|
|
|
|
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9200:9200"
|
|
|
|
- "9300:9300"
|
|
|
|
- "9300:9300"
|
|
|
@ -17,12 +16,11 @@ services:
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
|
- elastic
|
|
|
|
- elastic
|
|
|
|
logstash:
|
|
|
|
logstash:
|
|
|
|
image: logstash:7.14.2
|
|
|
|
image: logstash:7.16.1
|
|
|
|
container_name: log
|
|
|
|
container_name: log
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
discovery.seed_hosts: logstash
|
|
|
|
discovery.seed_hosts: logstash
|
|
|
|
LS_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
|
|
LS_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
|
|
LOG4J_FORMAT_MSG_NO_LOOKUPS: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config
|
|
|
|
- ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config
|
|
|
|
- ./logstash/nginx.log:/home/nginx.log
|
|
|
|
- ./logstash/nginx.log:/home/nginx.log
|
|
|
@ -37,7 +35,7 @@ services:
|
|
|
|
- elastic
|
|
|
|
- elastic
|
|
|
|
command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config
|
|
|
|
command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config
|
|
|
|
kibana:
|
|
|
|
kibana:
|
|
|
|
image: kibana:7.14.2
|
|
|
|
image: kibana:7.16.1
|
|
|
|
container_name: kib
|
|
|
|
container_name: kib
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
- "5601:5601"
|
|
|
|