node-distro/deploy/docker-compose/docker-compose.observability.yml
Anatolios Laskaris 5b823aa72e
chore: Add observability to docker-compose (#113)
* Add observability

* Update

* Update

* Fix indent

* Fix again

* Fix againt

* fix

* Add external address

* Fix links

* Fixes

* Fix

* Add IPFS

---------

Co-authored-by: folex <0xdxdy@gmail.com>
2023-03-22 17:59:01 +02:00

55 lines
1.2 KiB
YAML

services:
grafana:
image: grafana/grafana
ports:
- 3000:3000
environment:
GF_AUTH_DISABLE_LOGIN_FORM: true
GF_AUTH_ANONYMOUS_ENABLED: true
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards
- grafana:/var/lib/grafana
prometheus:
image: prom/prometheus
user: root
command:
- "--config.file=/config.yml"
- "--storage.tsdb.retention.time=168h"
- "--storage.tsdb.path=/data"
- "--web.enable-lifecycle"
ports:
- 9090:9090
volumes:
- ./configs/prometheus.yml:/config.yml
- prometheus:/data
loki:
image: grafana/loki:2.7.4
user: root
expose:
- 3100
volumes:
- ./configs/loki.yml:/config.yml
- loki:/data
command:
- "-config.file=/config.yml"
promtail:
image: grafana/promtail:2.7.4
volumes:
- ./configs/promtail.yml:/config.yml
- promtail:/data
- /var/lib/docker/containers:/var/lib/docker/containers
- /var/run/docker.sock:/var/run/docker.sock
command:
- "-config.file=/config.yml"
volumes:
grafana:
prometheus:
loki:
promtail: