put worker log to ELK

This commit is contained in:
aynsix
2020-04-24 20:27:11 +03:00
parent fa25b39da8
commit 30fa50f48d
4 changed files with 71 additions and 0 deletions

View File

@@ -91,6 +91,30 @@ services:
image: kibana:4.6.6
ports:
- 5601:5601
links:
- elasticsearch
depends_on:
- elasticsearch
logstash:
image: logstash:7.6.2
links:
- elasticsearch
volumes:
- ${PHRASEANET_CONFIG_DIR}:/var/alchemy/Phraseanet/config:rw
command: logstash -f /var/alchemy/Phraseanet/config/logstash.conf
depends_on:
- elasticsearch
restart: on-failure
filebeat:
hostname: filebeat
image: "docker.elastic.co/beats/filebeat:7.6.2"
volumes:
- ${PHRASEANET_CONFIG_DIR}/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- ${PHRASEANET_LOGS_DIR}:/var/alchemy/Phraseanet/logs:ro
command: filebeat run -e --strict.perms=false
restart: on-failure
networks:
default: