Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/clients/cmd/fluentd/docker/docker-compose.yml

36 lines
874 B

version: '3'
services:
loki:
build:
context: ../../../../
dockerfile: ./cmd/loki/Dockerfile
image: grafana/loki:main
ports:
- 3100
volumes:
- ./fluentd.conf:/fluentd/etc/fluent.conf
# Receive forwarded logs and send to /fluentd/logs/data.log and loki
fluentd:
build:
context: ../../../../
dockerfile: ./clients/cmd/fluentd/Dockerfile
image: grafana/fluent-plugin-loki:main
volumes:
- ./fluentd.conf:/fluentd/etc/fluent.conf
environment:
- LOKI_URL
depends_on:
- loki
# Read /var/log/syslog and send it to fluentd
fluentbit:
image: fluent/fluent-bit:1.0
command: "/fluent-bit/bin/fluent-bit -c /srv/fluent-bit.conf"
user: root
volumes:
- ./fluent-bit.conf:/srv/fluent-bit.conf
- /var/log/syslog:/var/log/syslog:ro
depends_on:
- fluentd
- loki