Added new environment for the actual network implementation. Most YML files are combinations from individual compose files

This commit is contained in:
2024-02-18 11:50:20 +00:00
parent 248b4c23aa
commit 2fad853b75
6 changed files with 337 additions and 0 deletions
+100
View File
@@ -0,0 +1,100 @@
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
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
node-exporter:
image: prom/node-exporter:latest
deploy:
mode: global
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
ports:
- "9100:9100"
tado-exporter:
user: "1000:1000"
image: registry.vbchaos.nl/tado-exporter:arm64
hostname: tado-exporter
environment:
EXPORTER_USERNAME: matthias.mitscherlich@gmail.com
EXPORTER_PASSWORD: 14Mai1984
ports:
- "9898:9898"