2020-06-21 08:21:09 +00:00
|
|
|
services:
|
|
|
|
elasticsearch:
|
2021-11-08 10:41:35 +00:00
|
|
|
image: elasticsearch:7.14.2
|
2020-06-21 08:21:09 +00:00
|
|
|
container_name: es
|
|
|
|
environment:
|
|
|
|
discovery.type: single-node
|
|
|
|
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9300:9300"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
networks:
|
|
|
|
- elastic
|
|
|
|
logstash:
|
2021-11-08 10:41:35 +00:00
|
|
|
image: logstash:7.14.2
|
2020-06-21 08:21:09 +00:00
|
|
|
container_name: log
|
|
|
|
environment:
|
|
|
|
discovery.seed_hosts: logstash
|
|
|
|
LS_JAVA_OPTS: "-Xms512m -Xmx512m"
|
2020-07-24 00:32:09 +00:00
|
|
|
volumes:
|
|
|
|
- ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config
|
|
|
|
- ./logstash/nginx.log:/home/nginx.log
|
2020-06-21 08:21:09 +00:00
|
|
|
ports:
|
|
|
|
- "5000:5000/tcp"
|
|
|
|
- "5000:5000/udp"
|
|
|
|
- "5044:5044"
|
|
|
|
- "9600:9600"
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
|
|
|
networks:
|
|
|
|
- elastic
|
2020-07-24 00:32:09 +00:00
|
|
|
command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config
|
2020-06-21 08:21:09 +00:00
|
|
|
kibana:
|
2021-11-08 10:41:35 +00:00
|
|
|
image: kibana:7.14.2
|
2020-06-21 08:21:09 +00:00
|
|
|
container_name: kib
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
|
|
|
networks:
|
|
|
|
- elastic
|
|
|
|
networks:
|
|
|
|
elastic:
|
|
|
|
driver: bridge
|