update nixos config; update server-dockers config

This commit is contained in:
2025-07-20 20:07:41 +02:00
parent 112f89502a
commit 722ce15132
7 changed files with 24290 additions and 7 deletions

7
server-dockers/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
configurations/homepage/bookmarks.yaml
configurations/homepage/custom.css
configurations/homepage/custom.js
configurations/homepage/docker.yaml
configurations/homepage/kubernetes.yaml
configurations/homepage/kubernetes.yaml

File diff suppressed because it is too large Load Diff

View File

@@ -27,10 +27,14 @@
description: download youtube music & videos
- Altres:
- grafana:
- raspberry grafana:
icon: grafana.png
href: http://192.168.1.155:3000/d/rYdddlPWk/node-exporter-full
description: grafana dashboard
description: raspberry grafana dashboard
- Galdric grafana:
icon: grafana.png
href: http://192.168.1.156:3000/d/rYdddlPWk/node-exporter-full
description: Galdric grafana dashboard
- Wallabag:
icon: wallabag.png
href: http://192.168.1.155:8098
@@ -43,4 +47,4 @@
type: pihole
url: http://192.168.1.155
version: 6 # required if running v6 or higher, defaults to 5
key: YOUR_PASSWORD_HERE
key: YOUR_PASSWORD_HERE # password

View File

@@ -1,4 +1,5 @@
version: '3.8'
#version: '3.8'
#
# More info: https://arnaucube.com/media-setup/
#
@@ -9,6 +10,9 @@ version: '3.8'
# - Replace the `/mnt/usb` to your custom location, usually an external hard
# drive.
#
# Before running: mount the external hard drive!!
# > sudo mount /dev/sda /mnt/usb
#
# Run:
# > sudo docker compose up -d
#
@@ -111,3 +115,50 @@ services:
volumes:
- /mnt/usb/configurations/homepage:/app/config
restart: unless-stopped
# metrics related:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- monitoring
restart: unless-stopped
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
ports:
- "9100:9100"
networks:
- monitoring
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana_data:/var/lib/grafana
networks:
- monitoring
depends_on:
- prometheus
restart: unless-stopped
networks:
monitoring:
driver: bridge
volumes:
prometheus_data:
driver: local
grafana_data:
driver: local

View File

@@ -0,0 +1,11 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']