Files
docker_scripts/compose/grafana/docker-compose.yml
T
matthias a4d8548379 added SWAG proxy manager
Updated backup schedules
removed loki from grafana
2023-08-15 16:59:30 +00:00

78 lines
1.5 KiB
YAML

version: '3.8'
volumes:
prometheus_data:
driver_opts:
type: nfs
o: addr=dockerstorage,nfsvers=4
device: :/grafana_prometheus_data
grafana_data:
driver_opts:
type: nfs
o: addr=dockerstorage,nfsvers=4
device: :/dockerstorage/grafana/grafana
loki_data:
driver_opts:
type: nfs
o: addr=dockerstorage,nfsvers=4
device: :/dockerstorage/grafana/loki
configs:
prometheus_config:
external: true
grafana_config:
external: true
services:
# loki:
# image: grafana/loki:2.6.1
# user: "0:0"
# volumes:
# - loki_data:/loki
# ports:
# - "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
promtail:
image: grafana/promtail:2.6.1
user: "0:0"
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
prometheus:
user: "0:0"
hostname: prometheus
image: prom/prometheus
environment:
- TZ=Europe/Berlin #change Time Zone if needed
configs:
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
volumes:
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
grafana:
user: "0:0"
hostname: grafana
image: grafana/grafana
depends_on:
- influx
environment:
- TZ=Europe/Amsterdam
configs:
- source: grafana_config
target: /etc/grafana/grafana.ini
volumes:
- grafana_data:/var/lib/grafana
ports:
- 3300:3000