version: '3.8' volumes: prometheus_data: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/grafana/prometheus 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 influxdb_data: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/grafana/influxdb configs: prometheus_config: external: true grafana_config: external: true alertmanager_config: external: true services: # redis: # 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 influx: user: "0:0" image: influxdb volumes: - influxdb_data:/var/lib/influxdb alertmanager: user: "0:0" hostname: alertmanager image: prom/alertmanager environment: - TZ=Europe/Berlin #change Time Zone if needed configs: - source: alertmanager_config target: /etc/alertmanager/alertmanager.conf command: - '--config.file=/etc/alertmanager/alertmanager.conf' ports: - 9093:9093 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' links: - alertmanager:alertmanager 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