Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

58 lines (52 sloc) 1.74 KB
version: "3.5"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
ports:
- "9200:9200"
environment:
- "discovery.type=single-node"
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data:rw # Persistence data
logstash:
image: docker.elastic.co/logstash/logstash:7.2.0
ports:
- "25826:25826"
- "5044:5044"
volumes:
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro # Pipeline configuration
restart: on-failure
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
ports:
- "5601:5601"
restart: on-failure
depends_on:
- elasticsearch
filebeat:
image: docker.elastic.co/beats/filebeat:7.2.0
volumes:
- ./filebeat/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml:ro # Configuration file
- /var/lib/docker/containers:/var/lib/docker/containers:ro # Docker logs
- /var/run/docker.sock:/var/run/docker.sock:ro # Additional information about containers
- ./filebeat/data:/usr/share/filebeat/data:rw # Persistence data
user: root # Allow access to log files and docker.sock
restart: on-failure
depends_on:
- logstash
comment-service:
image: cassiomolin/comment-service:latest
ports:
- "8002:8002"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
post-service:
image: cassiomolin/post-service:latest
ports:
- "8001:8001"
labels:
collect_logs_with_filebeat: "true"
decode_log_event_to_json_object: "true"
You can’t perform that action at this time.