add network to stack
This commit is contained in:
parent
fd97ab2010
commit
4c53a29ee5
1 changed files with 18 additions and 0 deletions
|
@ -10,6 +10,9 @@ services:
|
|||
volumes:
|
||||
- /docker/appdata/prometheus:/etc/prometheus
|
||||
- prom_data:/prometheus
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:11.2.2
|
||||
container_name: grafana
|
||||
|
@ -21,6 +24,8 @@ services:
|
|||
- GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD
|
||||
volumes:
|
||||
- /docker/appdata/grafana:/etc/grafana/provisioning/datasources
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
loki:
|
||||
image: grafana/loki:2.4.0
|
||||
|
@ -31,6 +36,8 @@ services:
|
|||
- "3100:3100"
|
||||
restart: unless-stopped
|
||||
command: -config.file=/etc/loki/loki-config.yml
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:2.4.0
|
||||
|
@ -40,12 +47,16 @@ services:
|
|||
- /docker/appdata/promtail:/etc/promtail
|
||||
restart: unless-stopped
|
||||
command: -config.file=/etc/promtail/promtail-config.yml
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
snmp-exporter:
|
||||
image: prom/snmp-exporter:v0.26.0
|
||||
volumes:
|
||||
- /docker/appdata/snmp:/etc/snmp_exporter
|
||||
command: --config.file=/etc/snmp-exporter/snmp.yml
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
node_exporter:
|
||||
image: quay.io/prometheus/node-exporter:v1.8.2
|
||||
|
@ -55,6 +66,8 @@ services:
|
|||
restart: unless-stopped
|
||||
volumes:
|
||||
- /:/host:ro,rslave
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
cadvisor:
|
||||
image: gcr.io/cadvisor/cadvisor:v0.50.0
|
||||
|
@ -69,6 +82,8 @@ services:
|
|||
- /dev/kmsg
|
||||
privileged: true
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- grafana
|
||||
|
||||
sonarr-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:v2.0
|
||||
|
@ -127,5 +142,8 @@ services:
|
|||
- "9712:9712"
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
grafana:
|
||||
|
||||
volumes:
|
||||
prom_data:
|
Loading…
Reference in a new issue