From 108a53b9db7193396cd1d986d7c0f1a77649e813 Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Fri, 6 Nov 2026 11:05:44 +0300 Subject: [PATCH] =?UTF-8?q?[SPRINT-V1][B]=20=D0=A0=D0=B5=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D1=80:=20SSO-=D0=B4=D0=B5=D1=82=D0=B5=D0=BA=D1=82=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=BF=D0=BE=D1=80=D1=82=D0=B0=D0=BC=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=BA=D1=81=D0=B8,=20208=20=D0=B7=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B5=D0=B9,=20=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20113=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/infra/README.md | 4 +- ops/infra/registry.yaml | 800 ++++++++++++++++++++++++++++++- ops/scripts/build_registry_v2.py | 54 ++- 3 files changed, 851 insertions(+), 7 deletions(-) diff --git a/ops/infra/README.md b/ops/infra/README.md index c61b187..d0fd33a 100644 --- a/ops/infra/README.md +++ b/ops/infra/README.md @@ -1,6 +1,6 @@ # Реестр инфраструктуры (единый источник правды) -_Обновлено: 2026-11-06T11:01:08_ +_Обновлено: 2026-11-06T11:05:43_ | Сущность | Количество | |---|---| @@ -30,7 +30,7 @@ _Обновлено: 2026-11-06T11:01:08_ | grafana.buryans.ru | — | нет | нет | host | | grocy.buryans.ru | 192.168.1.110:9284 | да | нет | host | | headscale.buryans.ru | 100.64.0.2:8443 | да | нет | host | -| home.buryans.ru | 192.168.1.106:9130 | да | нет | host | +| home.buryans.ru | 192.168.1.106:9130 | да | да | host | | homebox.buryans.ru | — | нет | нет | host | | hub.buryans.ru | 192.168.1.10:9120/me | да | нет | host | | immich.buryans.ru | 192.168.1.104:2283 | да | нет | host | diff --git a/ops/infra/registry.yaml b/ops/infra/registry.yaml index fe80ba7..0e5fa3a 100644 --- a/ops/infra/registry.yaml +++ b/ops/infra/registry.yaml @@ -1,9 +1,10 @@ version: 2 -generated: '2026-11-06T11:01:08' +generated: '2026-11-06T11:05:43' counts: hosts: 34 services: 170 domains: 50 + dependencies: 208 hosts: - id: ct101 vmid: 101 @@ -249,122 +250,145 @@ services: image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.101 + ram_mb: 10.8 - name: promtail host: ct101 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.101 + ram_mb: 4.3 - name: oauth2-proxy-dashy host: ct102 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9983 ip: 192.168.1.102 + ram_mb: 3.3 - name: beszel-agent host: ct102 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.102 + ram_mb: 10.8 - name: dashy host: ct102 image: lissy93/dashy:latest ports: null ip: 192.168.1.102 + ram_mb: 11.6 - name: promtail host: ct102 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.102 + ram_mb: 4.3 - name: jellyfin host: ct103 image: jellyfin/jellyfin:latest ports: null ip: 192.168.1.103 + ram_mb: 203.3 - name: beszel-agent host: ct103 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.103 + ram_mb: 10.8 - name: docmost-redis host: ct103 image: redis:7-alpine ports: null ip: 192.168.1.103 + ram_mb: 7.2 - name: oauth2-proxy-docmost host: ct103 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.103 + ram_mb: 6.3 - name: oauth2-proxy-podfetch host: ct103 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.103 + ram_mb: 5.8 - name: podfetch host: ct103 image: samuel19982/podfetch:latest ports: - 3003 ip: 192.168.1.103 + ram_mb: 11.2 - name: docmost host: ct103 image: docmost/docmost:latest ports: - 3001 ip: 192.168.1.103 + ram_mb: 285.2 - name: promtail host: ct103 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.103 + ram_mb: 4.3 - name: jellystat host: ct103 image: cyfershepard/jellystat:latest ports: - 3100 ip: 192.168.1.103 + ram_mb: 51.5 - name: docmost-db host: ct103 image: postgres:16-alpine ports: null ip: 192.168.1.103 + ram_mb: 29.8 - name: paperless_redis host: ct105 image: redis:7-alpine ports: null ip: 192.168.1.105 + ram_mb: 3.1 - name: beszel-agent host: ct105 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.105 + ram_mb: 10.8 - name: paperless host: ct105 image: ghcr.io/paperless-ngx/paperless-ngx:latest ports: - 8000 ip: 192.168.1.105 + ram_mb: 494.2 - name: promtail host: ct105 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.105 + ram_mb: 4.3 - name: syncthing host: ct105 image: lscr.io/linuxserver/syncthing:latest ports: null ip: 192.168.1.105 + ram_mb: 14.6 - name: oauth2-proxy-home host: ct106 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9130 ip: 192.168.1.106 + ram_mb: 5.7 - name: beszel-agent host: ct106 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.106 + ram_mb: 10.8 - name: mosquitto host: ct106 image: eclipse-mosquitto:latest @@ -372,381 +396,450 @@ services: - 1883 - 9001 ip: 192.168.1.106 + ram_mb: 2.2 - name: homeassistant host: ct106 image: ghcr.io/home-assistant/home-assistant:stable ports: null ip: 192.168.1.106 + ram_mb: 281.5 - name: ha-strip host: ct106 image: nginx:alpine ports: - 8130 ip: 192.168.1.106 + ram_mb: 0.9 - name: promtail host: ct106 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.106 + ram_mb: 4.3 - name: oauth2-proxy-status host: ct107 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9109 ip: 192.168.1.107 + ram_mb: 7.2 - name: beszel-agent host: ct107 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.107 + ram_mb: 10.8 - name: uptime_kuma host: ct107 image: louislam/uptime-kuma:2 ports: - 3001 ip: 192.168.1.107 + ram_mb: 158.3 - name: adguard host: ct107 image: adguard/adguardhome:latest ports: null ip: 192.168.1.107 + ram_mb: 41.6 - name: mosquitto host: ct107 image: eclipse-mosquitto:2 ports: null ip: 192.168.1.107 + ram_mb: 2.2 - name: promtail host: ct107 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.107 + ram_mb: 4.3 - name: n8n host: ct108 image: n8nio/n8n:latest ports: - 5680 ip: 192.168.1.108 + ram_mb: 389.1 - name: oauth2-proxy-n8n host: ct108 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9105 ip: 192.168.1.108 + ram_mb: 8.2 - name: oauth2-proxy-nodered host: ct108 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 1881 ip: 192.168.1.108 + ram_mb: 6.0 - name: node_red host: ct108 image: nodered/node-red:latest ports: - 1880 ip: 192.168.1.108 + ram_mb: 62.0 - name: beszel-agent host: ct108 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.108 + ram_mb: 10.8 - name: promtail host: ct108 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.108 + ram_mb: 4.3 - name: tg-admin-bot host: ct108 image: telegram-admin-bot-tg-admin-bot ports: null ip: 192.168.1.108 + ram_mb: 35.6 - name: beszel-agent host: ct109 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.109 + ram_mb: 10.8 - name: nextcloud host: ct109 image: nextcloud:latest ports: - 8080 ip: 192.168.1.109 + ram_mb: 187.6 - name: promtail host: ct109 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.109 + ram_mb: 4.3 - name: vaultwarden host: ct109 image: vaultwarden/server:latest ports: - 8081 ip: 192.168.1.109 + ram_mb: 12.8 - name: files_db host: ct109 image: mariadb:10.6 ports: null ip: 192.168.1.109 + ram_mb: 6.0 - name: oauth2-proxy-monica host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.110 + ram_mb: 5.5 - name: oauth2-proxy-metrics host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.110 + ram_mb: 5.6 - name: oauth2-proxy-finance host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9104 ip: 192.168.1.110 + ram_mb: 6.5 - name: oauth2-proxy-grocy host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9284 ip: 192.168.1.110 + ram_mb: 5.8 - name: oauth2-proxy-paperless host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9981 ip: 192.168.1.110 + ram_mb: 6.0 - name: oauth2-proxy-logs host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.110 + ram_mb: 5.5 - name: oauth2-proxy-stirling host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.110 + ram_mb: 5.4 - name: oauth2-proxy-3d host: ct110 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9131 ip: 192.168.1.110 + ram_mb: 6.1 - name: paperless_web host: ct110 image: ghcr.io/paperless-ngx/paperless-ngx:latest ports: - 8000 ip: 192.168.1.110 + ram_mb: 222.0 - name: paperless_worker host: ct110 image: ghcr.io/paperless-ngx/paperless-ngx:latest ports: null ip: 192.168.1.110 + ram_mb: 216.9 - name: paperless_redis host: ct110 image: redis:7-alpine ports: null ip: 192.168.1.110 + ram_mb: 3.1 - name: house3d-web host: ct110 image: nginx:1.27-alpine ports: - 8093 ip: 192.168.1.110 + ram_mb: 1.0 - name: stirling-pdf host: ct110 image: frooodle/s-pdf:latest ports: null ip: 192.168.1.110 + ram_mb: 293.4 - name: dozzle host: ct110 image: amir20/dozzle:latest ports: null ip: 192.168.1.110 + ram_mb: 9.3 - name: monica host: ct110 image: monica ports: - 8081 ip: 192.168.1.110 + ram_mb: 30.0 - name: monica-db host: ct110 image: mariadb:11 ports: null ip: 192.168.1.110 + ram_mb: 4.0 - name: firefly host: ct110 image: fireflyiii/core:latest ports: - 8080 ip: 192.168.1.110 + ram_mb: 38.5 - name: mealie host: ct110 image: ghcr.io/mealie-recipes/mealie:latest ports: - 9925 ip: 192.168.1.110 + ram_mb: 45.1 - name: vikunja host: ct110 image: vikunja/vikunja:latest ports: - 9285 ip: 192.168.1.110 + ram_mb: 28.2 - name: promtail host: ct110 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.110 + ram_mb: 4.3 - name: homebox host: ct110 image: ghcr.io/sysadminsmedia/homebox:latest ports: - 9287 ip: 192.168.1.110 + ram_mb: 15.7 - name: grocy host: ct110 image: lscr.io/linuxserver/grocy:latest ports: - 9283 ip: 192.168.1.110 + ram_mb: 3.3 - name: beszel-agent host: ct110 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.110 + ram_mb: 10.8 - name: beszel host: ct110 image: henrygd/beszel:latest ports: - 8092 ip: 192.168.1.110 + ram_mb: 44.7 - name: memos host: ct110 image: neosmemo/memos:stable ports: - 5230 ip: 192.168.1.110 + ram_mb: 9.5 - name: book-bot host: ct111 image: buryan/book-bot:latest ports: null ip: 192.168.1.111 + ram_mb: 3.6 - name: beszel-agent host: ct111 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.111 + ram_mb: 10.8 - name: oauth2-proxy-audiobookshelf host: ct111 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: null ip: 192.168.1.111 + ram_mb: 4.2 - name: oauth2-proxy-calibre host: ct111 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9982 ip: 192.168.1.111 + ram_mb: 4.4 - name: oauth2-proxy-catalog host: ct111 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9990 ip: 192.168.1.111 + ram_mb: 4.3 - name: oauth2-proxy-freshrss host: ct111 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 8091 ip: 192.168.1.111 + ram_mb: 7.2 - name: duplicati host: ct111 image: duplicati/duplicati:latest ports: - 8200 ip: 192.168.1.111 + ram_mb: 10.8 - name: audiobookshelf host: ct111 image: ghcr.io/advplyr/audiobookshelf:latest ports: - 13378 ip: 192.168.1.111 + ram_mb: 12.3 - name: freshrss host: ct111 image: freshrss/freshrss:latest ports: - 8090 ip: 192.168.1.111 + ram_mb: 11.5 - name: calibre-web host: ct111 image: crocodilestick/calibre-web-automated:latest ports: - 8083 ip: 192.168.1.111 + ram_mb: 44.9 - name: lidarr host: ct111 image: ghcr.nju.edu.cn/linuxserver/lidarr:latest ports: null ip: 192.168.1.111 + ram_mb: 56.9 - name: catalog host: ct111 image: buryan/catalog:latest ports: - 9200 ip: 192.168.1.111 + ram_mb: 1.0 - name: promtail host: ct111 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.111 + ram_mb: 4.3 - name: kavita host: ct111 image: jvmilazz0/kavita:latest ports: - 5000 ip: 192.168.1.111 + ram_mb: 87.7 - name: promtail host: ct113 image: grafana/promtail:3.5.1 ports: null ip: 192.168.1.113 + ram_mb: 4.3 - name: beszel-agent host: ct113 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.113 + ram_mb: 10.8 - name: loki host: ct113 image: grafana/loki:3.7.9 ports: - 3100 ip: 192.168.1.113 + ram_mb: 75.6 - name: grafana host: ct113 image: grafana/grafana:latest ports: - 3000 ip: 192.168.1.113 + ram_mb: 244.4 - name: oauth2-proxy-backup host: ct113 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9102 ip: 192.168.1.113 + ram_mb: 4.7 - name: authentik-security-redis-1 host: ct114 image: redis:7-alpine ports: null ip: 192.168.1.114 + ram_mb: 2.6 - name: beszel-agent host: ct114 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.114 + ram_mb: 10.8 - name: authentik-security-worker-1 host: ct114 image: ghcr.io/goauthentik/server:2026.8.5 ports: null ip: 192.168.1.114 + ram_mb: 39.2 - name: authentik-security-server-1 host: ct114 image: ghcr.io/goauthentik/server:2026.8.5 @@ -754,43 +847,51 @@ services: - 9000 - 9443 ip: 192.168.1.114 + ram_mb: 97.0 - name: promtail host: ct114 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.114 + ram_mb: 4.3 - name: authentik-security-postgresql-1 host: ct114 image: postgres:16-alpine ports: null ip: 192.168.1.114 + ram_mb: 14.1 - name: oauth2-proxy-openclaw host: ct115 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9108 ip: 192.168.1.115 + ram_mb: 4.5 - name: swarm-redis host: ct115 image: redis:7-alpine ports: - 6379 ip: 192.168.1.115 + ram_mb: 1.9 - name: beszel-agent host: ct115 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.115 + ram_mb: 10.8 - name: openclaw host: ct115 image: 3814fb1f62f9 ports: null ip: 192.168.1.115 + ram_mb: 37.5 - name: promtail host: ct115 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.115 + ram_mb: 4.3 - name: nats host: ct115 image: nats:2.10.17-alpine @@ -798,185 +899,219 @@ services: - 4222 - 8222 ip: 192.168.1.115 + ram_mb: 6.5 - name: beszel-agent host: ct116 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.116 + ram_mb: 10.8 - name: plex host: ct116 image: linuxserver/plex:latest ports: - 32400 ip: 192.168.1.116 + ram_mb: 10.6 - name: promtail host: ct116 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.116 + ram_mb: 4.3 - name: oauth2-proxy-sonarr host: ct117 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9989 ip: 192.168.1.117 + ram_mb: 3.9 - name: sonarr host: ct117 image: lscr.io/linuxserver/sonarr:latest ports: - 8989 ip: 192.168.1.117 + ram_mb: 56.6 - name: beszel-agent host: ct117 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.117 + ram_mb: 10.8 - name: promtail host: ct117 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.117 + ram_mb: 4.3 - name: oauth2-proxy-radarr host: ct118 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9988 ip: 192.168.1.118 + ram_mb: 7.3 - name: radarr host: ct118 image: lscr.io/linuxserver/radarr:latest ports: - 7878 ip: 192.168.1.118 + ram_mb: 90.7 - name: beszel-agent host: ct118 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.118 + ram_mb: 10.8 - name: promtail host: ct118 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.118 + ram_mb: 4.3 - name: oauth2-proxy-prowlarr host: ct119 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9987 ip: 192.168.1.119 + ram_mb: 4.1 - name: prowlarr host: ct119 image: lscr.io/linuxserver/prowlarr:latest ports: - 9696 ip: 192.168.1.119 + ram_mb: 25.8 - name: beszel-agent host: ct119 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.119 + ram_mb: 10.8 - name: promtail host: ct119 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.119 + ram_mb: 4.3 - name: bazarr host: ct120 image: lscr.io/linuxserver/bazarr:latest ports: - 6767 ip: 192.168.1.120 + ram_mb: 31.2 - name: beszel-agent host: ct120 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.120 + ram_mb: 10.8 - name: oauth2-proxy-bazarr host: ct120 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9986 ip: 192.168.1.120 + ram_mb: 3.8 - name: promtail host: ct120 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.120 + ram_mb: 4.3 - name: beszel-agent host: ct121 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.121 + ram_mb: 10.8 - name: seerr host: ct121 image: ghcr.io/seerr-team/seerr:latest ports: - 5055 ip: 192.168.1.121 + ram_mb: 71.8 - name: promtail host: ct121 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.121 + ram_mb: 4.3 - name: beszel-agent host: ct122 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.122 + ram_mb: 10.8 - name: oauth2-proxy-tautulli host: ct122 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9984 ip: 192.168.1.122 + ram_mb: 4.1 - name: promtail host: ct122 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.122 + ram_mb: 4.3 - name: tautulli host: ct122 image: tautulli/tautulli:latest ports: - 8181 ip: 192.168.1.122 + ram_mb: 10.8 - name: beszel-agent host: ct124 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.124 + ram_mb: 10.8 - name: jackett host: ct124 image: lscr.io/linuxserver/jackett:latest ports: - 9117 ip: 192.168.1.124 + ram_mb: 4.1 - name: beszel-agent host: ct125 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.125 + ram_mb: 10.8 - name: oauth2-proxy-navidrome host: ct125 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9976 ip: 192.168.1.125 + ram_mb: 4.1 - name: promtail host: ct125 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.125 + ram_mb: 4.3 - name: navidrome host: ct125 image: deluan/navidrome:latest ports: null ip: 192.168.1.125 + ram_mb: 14.9 - name: beszel-agent host: ct126 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.126 + ram_mb: 10.8 - name: frigate host: ct126 image: ghcr.io/blakeblackshear/frigate:stable @@ -984,100 +1119,118 @@ services: - 5000 - 8971 ip: 192.168.1.126 + ram_mb: 86.3 - name: beszel-agent host: ct127 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.127 + ram_mb: 10.8 - name: oauth2-proxy-linkding host: ct127 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9091 ip: 192.168.1.127 + ram_mb: 3.8 - name: promtail host: ct127 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.127 + ram_mb: 4.3 - name: linkding host: ct127 image: sissbruecker/linkding:latest ports: - 3000 ip: 192.168.1.127 + ram_mb: 34.4 - name: beszel-agent host: ct134 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.134 + ram_mb: 10.8 - name: alertmanager host: ct134 image: prom/alertmanager:v0.34.1 ports: null ip: 192.168.1.134 + ram_mb: 13.1 - name: prometheus host: ct134 image: prom/prometheus:latest ports: - 9090 ip: 192.168.1.134 + ram_mb: 126.4 - name: promtail host: ct134 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.134 + ram_mb: 4.3 - name: buryan-alert-webhook host: ct134 image: python:3.12-alpine ports: null ip: 192.168.1.134 + ram_mb: 0.9 - name: exportarr-sonarr host: ct134 image: ghcr.io/onedr0p/exportarr:latest ports: - 9707 ip: 192.168.1.134 + ram_mb: 5.4 - name: oauth2-proxy-prometheus host: ct134 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9113 ip: 192.168.1.134 + ram_mb: 9.1 - name: exportarr-prowlarr host: ct134 image: ghcr.io/onedr0p/exportarr:latest ports: - 9709 ip: 192.168.1.134 + ram_mb: 8.5 - name: exportarr-bazarr host: ct134 image: ghcr.io/onedr0p/exportarr:latest ports: - 9710 ip: 192.168.1.134 + ram_mb: 5.2 - name: exportarr-radarr host: ct134 image: ghcr.io/onedr0p/exportarr:latest ports: - 9708 ip: 192.168.1.134 + ram_mb: 6.6 - name: beszel-agent host: ct139 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.139 + ram_mb: 10.8 - name: syncthing host: ct139 image: syncthing/syncthing:latest ports: - 8384 ip: 192.168.1.139 + ram_mb: 14.6 - name: promtail host: ct139 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.139 + ram_mb: 4.3 - name: gitea host: ct140 image: gitea/gitea:latest @@ -1085,97 +1238,115 @@ services: - 3000 - 222 ip: 192.168.1.140 + ram_mb: 120.1 - name: beszel-agent host: ct140 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.140 + ram_mb: 10.8 - name: gitea-runner host: ct140 image: gitea/act_runner:latest ports: null ip: 192.168.1.140 + ram_mb: 6.8 - name: promtail host: ct140 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.140 + ram_mb: 4.3 - name: oauth2-proxy-element host: ct155 image: quay.io/oauth2-proxy/oauth2-proxy:latest ports: - 9103 ip: 192.168.1.155 + ram_mb: 10.6 - name: beszel-agent host: ct155 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.155 + ram_mb: 10.8 - name: livekit host: ct155 image: livekit/livekit-server:latest ports: null ip: 192.168.1.155 + ram_mb: 14.5 - name: element-web host: ct155 image: vectorim/element-web:latest ports: - 8088 ip: 192.168.1.155 + ram_mb: 1.9 - name: matrix-synapse host: ct155 image: matrixdotorg/synapse:latest ports: - 8008 ip: 192.168.1.155 + ram_mb: 49.3 - name: matrix-coturn host: ct155 image: coturn/coturn:latest ports: null ip: 192.168.1.155 + ram_mb: 3.3 - name: promtail host: ct155 image: grafana/promtail:3.2.1 ports: null ip: 192.168.1.155 + ram_mb: 4.3 - name: mautrix-telegram host: ct155 image: dock.mau.dev/mautrix/telegram:latest ports: - 29317 ip: 192.168.1.155 + ram_mb: 7.7 - name: node_exporter host: vm104 image: prom/node-exporter:latest ports: null ip: 192.168.1.104 + ram_mb: null - name: beszel-agent host: vm104 image: henrygd/beszel-agent:latest ports: null ip: 192.168.1.104 + ram_mb: 10.8 - name: zigbee2mqtt host: vm104 image: ghcr.nju.edu.cn/koenkk/zigbee2mqtt:latest ports: null ip: 192.168.1.104 + ram_mb: 11.1 - name: portainer host: vm104 image: portainer/portainer-ce:latest ports: - 9000 ip: 192.168.1.104 + ram_mb: 13.2 - name: immich_database host: vm104 image: tensorchord/pgvecto-rs:pg14-v0.2.0 ports: null ip: 192.168.1.104 + ram_mb: 4.7 - name: heimdall host: vm104 image: lscr.io/linuxserver/heimdall:latest ports: - 8088 ip: 192.168.1.104 + ram_mb: 11.5 domains: - domain: 193.233.210.184 upstream: api.telegram.org/ @@ -1270,7 +1441,7 @@ domains: - domain: home.buryans.ru upstream: 192.168.1.106:9130 ssl: true - sso: false + sso: true edge: host - domain: homebox.buryans.ru upstream: null @@ -1427,3 +1598,628 @@ domains: ssl: true sso: false edge: host +dependencies: +- from: ct101 + to: beszel-agent + kind: runs +- from: ct101 + to: promtail + kind: runs +- from: ct102 + to: oauth2-proxy-dashy + kind: runs +- from: ct102 + to: beszel-agent + kind: runs +- from: ct102 + to: dashy + kind: runs +- from: ct102 + to: promtail + kind: runs +- from: ct103 + to: jellyfin + kind: runs +- from: ct103 + to: beszel-agent + kind: runs +- from: ct103 + to: docmost-redis + kind: runs +- from: ct103 + to: oauth2-proxy-docmost + kind: runs +- from: ct103 + to: oauth2-proxy-podfetch + kind: runs +- from: ct103 + to: podfetch + kind: runs +- from: ct103 + to: docmost + kind: runs +- from: ct103 + to: promtail + kind: runs +- from: ct103 + to: jellystat + kind: runs +- from: ct103 + to: docmost-db + kind: runs +- from: ct105 + to: paperless_redis + kind: runs +- from: ct105 + to: beszel-agent + kind: runs +- from: ct105 + to: paperless + kind: runs +- from: ct105 + to: promtail + kind: runs +- from: ct105 + to: syncthing + kind: runs +- from: ct106 + to: oauth2-proxy-home + kind: runs +- from: ct106 + to: beszel-agent + kind: runs +- from: ct106 + to: mosquitto + kind: runs +- from: ct106 + to: homeassistant + kind: runs +- from: ct106 + to: ha-strip + kind: runs +- from: ct106 + to: promtail + kind: runs +- from: ct107 + to: oauth2-proxy-status + kind: runs +- from: ct107 + to: beszel-agent + kind: runs +- from: ct107 + to: uptime_kuma + kind: runs +- from: ct107 + to: adguard + kind: runs +- from: ct107 + to: mosquitto + kind: runs +- from: ct107 + to: promtail + kind: runs +- from: ct108 + to: n8n + kind: runs +- from: ct108 + to: oauth2-proxy-n8n + kind: runs +- from: ct108 + to: oauth2-proxy-nodered + kind: runs +- from: ct108 + to: node_red + kind: runs +- from: ct108 + to: beszel-agent + kind: runs +- from: ct108 + to: promtail + kind: runs +- from: ct108 + to: tg-admin-bot + kind: runs +- from: ct109 + to: beszel-agent + kind: runs +- from: ct109 + to: nextcloud + kind: runs +- from: ct109 + to: promtail + kind: runs +- from: ct109 + to: vaultwarden + kind: runs +- from: ct109 + to: files_db + kind: runs +- from: ct110 + to: oauth2-proxy-monica + kind: runs +- from: ct110 + to: oauth2-proxy-metrics + kind: runs +- from: ct110 + to: oauth2-proxy-finance + kind: runs +- from: ct110 + to: oauth2-proxy-grocy + kind: runs +- from: ct110 + to: oauth2-proxy-paperless + kind: runs +- from: ct110 + to: oauth2-proxy-logs + kind: runs +- from: ct110 + to: oauth2-proxy-stirling + kind: runs +- from: ct110 + to: oauth2-proxy-3d + kind: runs +- from: ct110 + to: paperless_web + kind: runs +- from: ct110 + to: paperless_worker + kind: runs +- from: ct110 + to: paperless_redis + kind: runs +- from: ct110 + to: house3d-web + kind: runs +- from: ct110 + to: stirling-pdf + kind: runs +- from: ct110 + to: dozzle + kind: runs +- from: ct110 + to: monica + kind: runs +- from: ct110 + to: monica-db + kind: runs +- from: ct110 + to: firefly + kind: runs +- from: ct110 + to: mealie + kind: runs +- from: ct110 + to: vikunja + kind: runs +- from: ct110 + to: promtail + kind: runs +- from: ct110 + to: homebox + kind: runs +- from: ct110 + to: grocy + kind: runs +- from: ct110 + to: beszel-agent + kind: runs +- from: ct110 + to: beszel + kind: runs +- from: ct110 + to: memos + kind: runs +- from: ct111 + to: book-bot + kind: runs +- from: ct111 + to: beszel-agent + kind: runs +- from: ct111 + to: oauth2-proxy-audiobookshelf + kind: runs +- from: ct111 + to: oauth2-proxy-calibre + kind: runs +- from: ct111 + to: oauth2-proxy-catalog + kind: runs +- from: ct111 + to: oauth2-proxy-freshrss + kind: runs +- from: ct111 + to: duplicati + kind: runs +- from: ct111 + to: audiobookshelf + kind: runs +- from: ct111 + to: freshrss + kind: runs +- from: ct111 + to: calibre-web + kind: runs +- from: ct111 + to: lidarr + kind: runs +- from: ct111 + to: catalog + kind: runs +- from: ct111 + to: promtail + kind: runs +- from: ct111 + to: kavita + kind: runs +- from: ct113 + to: promtail + kind: runs +- from: ct113 + to: beszel-agent + kind: runs +- from: ct113 + to: loki + kind: runs +- from: ct113 + to: grafana + kind: runs +- from: ct113 + to: oauth2-proxy-backup + kind: runs +- from: ct114 + to: authentik-security-redis-1 + kind: runs +- from: ct114 + to: beszel-agent + kind: runs +- from: ct114 + to: authentik-security-worker-1 + kind: runs +- from: ct114 + to: authentik-security-server-1 + kind: runs +- from: ct114 + to: promtail + kind: runs +- from: ct114 + to: authentik-security-postgresql-1 + kind: runs +- from: ct115 + to: oauth2-proxy-openclaw + kind: runs +- from: ct115 + to: swarm-redis + kind: runs +- from: ct115 + to: beszel-agent + kind: runs +- from: ct115 + to: openclaw + kind: runs +- from: ct115 + to: promtail + kind: runs +- from: ct115 + to: nats + kind: runs +- from: ct116 + to: beszel-agent + kind: runs +- from: ct116 + to: plex + kind: runs +- from: ct116 + to: promtail + kind: runs +- from: ct117 + to: oauth2-proxy-sonarr + kind: runs +- from: ct117 + to: sonarr + kind: runs +- from: ct117 + to: beszel-agent + kind: runs +- from: ct117 + to: promtail + kind: runs +- from: ct118 + to: oauth2-proxy-radarr + kind: runs +- from: ct118 + to: radarr + kind: runs +- from: ct118 + to: beszel-agent + kind: runs +- from: ct118 + to: promtail + kind: runs +- from: ct119 + to: oauth2-proxy-prowlarr + kind: runs +- from: ct119 + to: prowlarr + kind: runs +- from: ct119 + to: beszel-agent + kind: runs +- from: ct119 + to: promtail + kind: runs +- from: ct120 + to: bazarr + kind: runs +- from: ct120 + to: beszel-agent + kind: runs +- from: ct120 + to: oauth2-proxy-bazarr + kind: runs +- from: ct120 + to: promtail + kind: runs +- from: ct121 + to: beszel-agent + kind: runs +- from: ct121 + to: seerr + kind: runs +- from: ct121 + to: promtail + kind: runs +- from: ct122 + to: beszel-agent + kind: runs +- from: ct122 + to: oauth2-proxy-tautulli + kind: runs +- from: ct122 + to: promtail + kind: runs +- from: ct122 + to: tautulli + kind: runs +- from: ct124 + to: beszel-agent + kind: runs +- from: ct124 + to: jackett + kind: runs +- from: ct125 + to: beszel-agent + kind: runs +- from: ct125 + to: oauth2-proxy-navidrome + kind: runs +- from: ct125 + to: promtail + kind: runs +- from: ct125 + to: navidrome + kind: runs +- from: ct126 + to: beszel-agent + kind: runs +- from: ct126 + to: frigate + kind: runs +- from: ct127 + to: beszel-agent + kind: runs +- from: ct127 + to: oauth2-proxy-linkding + kind: runs +- from: ct127 + to: promtail + kind: runs +- from: ct127 + to: linkding + kind: runs +- from: ct134 + to: beszel-agent + kind: runs +- from: ct134 + to: alertmanager + kind: runs +- from: ct134 + to: prometheus + kind: runs +- from: ct134 + to: promtail + kind: runs +- from: ct134 + to: buryan-alert-webhook + kind: runs +- from: ct134 + to: exportarr-sonarr + kind: runs +- from: ct134 + to: oauth2-proxy-prometheus + kind: runs +- from: ct134 + to: exportarr-prowlarr + kind: runs +- from: ct134 + to: exportarr-bazarr + kind: runs +- from: ct134 + to: exportarr-radarr + kind: runs +- from: ct139 + to: beszel-agent + kind: runs +- from: ct139 + to: syncthing + kind: runs +- from: ct139 + to: promtail + kind: runs +- from: ct140 + to: gitea + kind: runs +- from: ct140 + to: beszel-agent + kind: runs +- from: ct140 + to: gitea-runner + kind: runs +- from: ct140 + to: promtail + kind: runs +- from: ct155 + to: oauth2-proxy-element + kind: runs +- from: ct155 + to: beszel-agent + kind: runs +- from: ct155 + to: livekit + kind: runs +- from: ct155 + to: element-web + kind: runs +- from: ct155 + to: matrix-synapse + kind: runs +- from: ct155 + to: matrix-coturn + kind: runs +- from: ct155 + to: promtail + kind: runs +- from: ct155 + to: mautrix-telegram + kind: runs +- from: vm104 + to: node_exporter + kind: runs +- from: vm104 + to: beszel-agent + kind: runs +- from: vm104 + to: zigbee2mqtt + kind: runs +- from: vm104 + to: portainer + kind: runs +- from: vm104 + to: immich_database + kind: runs +- from: vm104 + to: heimdall + kind: runs +- from: domain:193.233.210.184 + to: api.telegram.org + kind: proxy +- from: domain:3d.buryans.ru + to: oauth2-proxy-3d + kind: proxy +- from: domain:adguard.buryans.ru + to: grafana + kind: proxy +- from: domain:admin.buryans.ru + to: authentik-security-server-1 + kind: proxy +- from: domain:authentik.buryans.ru + to: authentik-security-server-1 + kind: proxy +- from: domain:backup.buryans.ru + to: oauth2-proxy-backup + kind: proxy +- from: domain:bazarr.buryans.ru + to: oauth2-proxy-bazarr + kind: proxy +- from: domain:books.buryans.ru + to: oauth2-proxy-catalog + kind: proxy +- from: domain:docs.buryans.ru + to: oauth2-proxy-paperless + kind: proxy +- from: domain:element.buryans.ru + to: oauth2-proxy-element + kind: proxy +- from: domain:files.buryans.ru + to: nextcloud + kind: proxy +- from: domain:finance.buryans.ru + to: oauth2-proxy-finance + kind: proxy +- from: domain:flow.buryans.ru + to: oauth2-proxy-nodered + kind: proxy +- from: domain:git.buryans.ru + to: grafana + kind: proxy +- from: domain:grocy.buryans.ru + to: oauth2-proxy-grocy + kind: proxy +- from: domain:headscale.buryans.ru + to: 100.64.0.2:8443 + kind: proxy +- from: domain:home.buryans.ru + to: oauth2-proxy-home + kind: proxy +- from: domain:hub.buryans.ru + to: 192.168.1.10:9120 + kind: proxy +- from: domain:immich.buryans.ru + to: 192.168.1.104:2283 + kind: proxy +- from: domain:links.buryans.ru + to: oauth2-proxy-linkding + kind: proxy +- from: domain:matrix.buryans.ru + to: matrix-synapse + kind: proxy +- from: domain:meals.buryans.ru + to: mealie + kind: proxy +- from: domain:media.buryans.ru + to: 192.168.1.103:8096 + kind: proxy +- from: domain:music.buryans.ru + to: oauth2-proxy-navidrome + kind: proxy +- from: domain:n8n.buryans.ru + to: oauth2-proxy-n8n + kind: proxy +- from: domain:news.buryans.ru + to: oauth2-proxy-freshrss + kind: proxy +- from: domain:ombi.buryans.ru + to: seerr + kind: proxy +- from: domain:openclaw.buryans.ru + to: oauth2-proxy-openclaw + kind: proxy +- from: domain:plex.buryans.ru + to: plex + kind: proxy +- from: domain:prowlarr.buryans.ru + to: oauth2-proxy-prowlarr + kind: proxy +- from: domain:pve.buryans.ru + to: 192.168.1.10:8006 + kind: proxy +- from: domain:radarr.buryans.ru + to: oauth2-proxy-radarr + kind: proxy +- from: domain:rss.buryans.ru + to: oauth2-proxy-freshrss + kind: proxy +- from: domain:sonarr.buryans.ru + to: oauth2-proxy-sonarr + kind: proxy +- from: domain:status.buryans.ru + to: 192.168.1.10:9120 + kind: proxy +- from: domain:sync.buryans.ru + to: syncthing + kind: proxy +- from: domain:vault.buryans.ru + to: vaultwarden + kind: proxy +- from: domain:vikunja.buryans.ru + to: vikunja + kind: proxy diff --git a/ops/scripts/build_registry_v2.py b/ops/scripts/build_registry_v2.py index 22c9eb9..59d13b6 100755 --- a/ops/scripts/build_registry_v2.py +++ b/ops/scripts/build_registry_v2.py @@ -85,6 +85,29 @@ def _blocks(text): return blocks +def costs(hostlist): + """RAM по контейнерам (docker stats, один вызов на хост).""" + out = {} + for h in hostlist: + if h["status"] != "running": + continue + if h["type"] == "lxc": + cmd = "pct exec %s -- " % h["vmid"] + else: + cmd = "" + raw = sh(cmd + "docker stats --no-stream --format '{{.Name}}|{{.MemUsage}}' 2>/dev/null", 90) + for ln in raw.splitlines(): + f = ln.split("|") + if len(f) < 2: + continue + m = re.match(r"([\d.]+)([KMG]iB)", f[1].strip()) + if m: + v = float(m.group(1)) + mb = v / 1024 if m.group(2) == "KiB" else (v * 1024 if m.group(2) == "GiB" else v) + out[f[0]] = round(mb, 1) + return out + + def domains(): """Домены из nginx: server_name + proxy_pass (хост и VPS).""" seen, out = set(), [] @@ -101,7 +124,7 @@ def domains(): ups = [u for u in re.findall(r"proxy_pass\s+https?://([^;\s]+)", block) if "oauth2" not in u] ssl = "ssl_certificate" in block - auth = "auth_request" in block + auth = ("auth_request" in block) or ("oauth2" in block.lower()) for n in names[0].split(): n = n.strip() if not n or n in ("_", "localhost") or "$" in n or n in seen: @@ -112,16 +135,40 @@ def domains(): return sorted(out, key=lambda x: x["domain"]) +def dependencies(hosts_list, services_list, domains_list): + """Рёбра: хост содержит сервис; домен проксируется на сервис.""" + edges = [] + for sv in services_list: + edges.append({"from": sv["host"], "to": sv["name"], "kind": "runs"}) + for d in domains_list: + up = (d.get("upstream") or "").split("/")[0] + if not up: + continue + target = None + for sv in services_list: + if any(":%d" % p in up for p in (sv.get("ports") or [])): + target = sv["name"] + break + if not target and up: + target = up + edges.append({"from": "domain:%s" % d["domain"], "to": target or up, "kind": "proxy"}) + return edges + + def main(): os.makedirs(OUT, exist_ok=True) h = hosts() s = services(h) d = domains() + c = costs(h) + e = dependencies(h, s, d) + for sv in s: + sv["ram_mb"] = c.get(sv["name"]) import yaml reg = {"version": 2, "generated": datetime.now().isoformat(timespec="seconds"), - "counts": {"hosts": len(h), "services": len(s), "domains": len(d)}, - "hosts": h, "services": s, "domains": d} + "counts": {"hosts": len(h), "services": len(s), "domains": len(d), "dependencies": len(e)}, + "hosts": h, "services": s, "domains": d, "dependencies": e} path = os.path.join(OUT, "registry.yaml") with open(path, "w", encoding="utf-8") as f: yaml.safe_dump(reg, f, allow_unicode=True, sort_keys=False, width=200) @@ -145,6 +192,7 @@ def main(): print("хостов: %d | сервисов: %d | доменов: %d" % (len(h), len(s), len(d))) print("домены с SSO: %d | без SSO: %d" % (sum(1 for x in d if x["sso"]), sum(1 for x in d if not x["sso"]))) + print("зависимостей: %d | сервисов со стоимостью: %d" % (len(e), len(c))) if __name__ == "__main__":