Compare commits

...
Author SHA1 Message Date
hermes ea077a10a0 docs: comprehensive prod map — add all stacks, zombie, ephemeral
Re-analyzed prod end-to-end via docker_socket_proxy:

NEW DISCOVERIES (not in prev diagrams):
- 7 stacks deployed via brencher (PROFILES env): gitea, hermes,
  hermes_infra, immich, gmail_mcp, torrserv_proxy, brencher2
- 5 standalone: docker_socket_proxy, lampa-jackett (compose),
  photosHelper/registry/nginx (all DEAD · Replicas: 0)
- 7 zombie stacks (volumes only, 0 services):
  nextcloud (4) · sstp/softether (4) · portainer · swarmpit ·
  test · torr_cache · beszel-poc
- 48 ephemeral exited containers (gitea act_runner job pods
  with random names like romantic_wozniak)
- 153 volumes total (18 mounted, 135 orphaned)
- /configs and /secrets are 403 from socket-proxy (POST:1 needed)
- Known secrets in gitea: LFS_JWT_SECRET, JWT_SECRET, SECRET_KEY,
  INTERNAL_TOKEN

Diagram now has 9 swimlanes instead of 6:
  external · ingress/egress · stacks-via-brencher · stacks-standalone ·
  zombie · ephemeral · internal-nets · volumes · secrets

Use this as the full map; standalone-adaptive.svg has per-node detail.
2026-08-27 18:12:03 +00:00
hermes 463da2e48b docs: add Mermaid variant for simplified flow diagram
Per user feedback that the 4-column SVG is too noisy, added a Mermaid
flowchart that shows the same topology as 4 swimlanes (internet /
ingress-egress / stacks / internal-nets) with linear arrows only.

This is the 'quick view' — for full node-level detail (IPs, container
names, dead-state), use standalone-adaptive.svg.

Mermaid block tested via /api/v1/markdown — renders as code-block
in Gitea, mermaid.js expands it inline in preview view.
2026-08-27 18:04:55 +00:00
hermes cb285a5461 docs: 4-column layout (internet / ingress-egress / stacks / internal-nets)
Per user spec — exact 4 columns:

  1. INTERNET        (external: Client, Tailscale, Keenetic, lan)
  2. INGRESS/EGRESS  (10 networks that can reach internet)
  3. STACKS & PODS   (12 stacks with nodes inside)
  4. INTERNAL NETS   (12 networks, positioned at their parent stack's y)

Key design: internal networks in col 4 are placed at the same y-coordinate
as their parent stack in col 3. This makes the visual flow:
  external -> ingress/egress -> node -> internal
which mirrors how a packet actually traverses: client comes in via external,
hits an egress-capable network, gets routed to a pod, pod talks to its
stack-private network.

E.g. brencher stack has 2 internal nets (brencher_brencher-net + brencher_default).
Both placed at the brencher stack's y, side-by-side.

Color codes:
  col 1 - slate (external)
  col 2 - green (#22c55e, ingress/egress)
  col 3 - cyan (stacks, default)
  col 4 - violet (#818cf8, internal)

Connector arrows:
  - col 1 -> col 2: green dashed (egress flow)
  - col 2 -> nodes: gray 0.4 (node<->egress)
  - nodes -> col 4: violet (node<->internal)
  - col 4 left edge: violet connector dots
2026-08-27 17:59:49 +00:00
hermes 67797c8e7d docs: split networks into 3 columns (external/egress/internal)
Per user request: add a third column for internal-only networks and
re-analyze prod to classify networks by egress capability.

Analysis (from docker_socket_proxy inspection of all running containers
+ their attached networks):

  external (5):       Client, Keenetic, Tailscale, lan
  egress-capable (10): ingress, nginx_ingress, nginx_default,
                      hermes_infra_squid_egress, hermes_infra_hermes_proxy,
                      hermes_infra_admin,
                      docker_socket_proxy_squid_egress,
                      docker_socket_proxy_hermes_proxy,
                      docker_socket_proxy_admin,
                      docker_socket_proxy_socket_proxy
  internal-only (12): gitea_gitea, immich_default, hermes_hermes,
                      hermes_infra_default, gmail_mcp_default,
                      torrserv_proxy_default, brencher_brencher-net,
                      brencher2_brencher-net, brencher_default,
                      brencher2_default, photosHelper_default,
                      docker_socket_proxy_default

Layout: 3 columns of networks (width 240 each), then stacks on the right.
Color codes:
  external  - slate border (net-external-fill)
  egress    - green border (#22c55e, net-egress-fill)
  internal  - violet border (#818cf8, net-internal-fill)

Hover highlights: still working via class=.conn (no change needed).

Stack layout unchanged.
2026-08-27 17:49:55 +00:00
hermes 3e68768a22 docs: change arrows from pod-pod to node-network
Per user: arrows should connect a node (container) to the network it
belongs to, not between pods via a network.

What changed:
- Removed all 'deploy flow' arrows between brencher and stacks
- Removed 'ingress -> gitea' representative arrow
- Added 43 horizontal lines: each line goes from a yellow connector dot
  on the right edge of a network block (x=320) to the left edge of a
  node rect (x=395). Stroke #94a3b8, width 0.8, opacity 0.4 — background,
  not dominant.
- 23 yellow connector dots on right edge of every network block.
- External flow (Client -> Tailscale -> lan -> ingress) preserved as
  vertical amber arrows.

Nodes list per stack is unchanged.
README.md unchanged (How to update / Sources still accurate).
2026-08-27 17:36:32 +00:00
hermes 23bb1e8a70 docs: bring back Client + Tailscale + Keenetic in left column
Per user: external entities must stay. They're now in the left column
above the network blocks:

- Client (ext-client-fill, violet border) — from tailscale, 100.x.x.x
- Keenetic router + Tailscale subnet (net-external-fill, slate) on lan
- lan block (192.168.1.0/24)
- ingress + all 22 overlay networks (unchanged from previous commit)

Also wired connector arrows:
- Client -> Tailscale (https)
- Tailscale -> lan
- lan -> ingress (amber)
- ingress -> gitea (representative)

Brencher deploy arrows now reach all 6 main stacks (gitea, hermes,
hermes_infra, immich, brencher2, not just 3).

Stack layout unchanged.
2026-08-27 17:32:47 +00:00
hermes 8dc466ced3 docs: rewrite diagram as 2-column (networks left, stacks right)
Per user request: complete restructure.

Left column: ALL 22 networks (lan + 21 swarm overlay) as small blocks.
Right column: stacks, with nodes listed inside each.
No physical hosts, no reachability annotations, no legend noise.

Inside each stack: <rect class="node-fill"> per node with:
- container name + short task id
- current IPs in relevant networks
- image (where relevant)

Dead nodes (brencher-state-proxy, nginx_*) shown with class="node-dead"
(red dashed border) to keep them visible but clearly off.

Connector lines: amber = LAN reach, dashed rose = brencher deploy flow.

README.md rewritten: minimal — what / how to update / sources.
Removed svg-adaptive.md (info now in README).
2026-08-27 17:29:12 +00:00
hermes df1b2ce715 docs: add lan network + numbered host circles + reachability
Updates to standalone-adaptive.svg:

1. NEW: explicit 'lan' network block (amber, 192.168.1.0/24) between Keenetic
   and physical hosts — clarifies where traffic actually flows.

2. NEW: yellow numbered circles on each physical host:
   - (1) odroid (manager)
   - (2) xu4 (worker)
   Plus matching legend entry.

3. NEW: reachability annotations — green/red dots show which nodes can see
   which others (Client ⇄ Tailscale ⇄ Keenetic, gitea ❌ nginx_nginx dead,
   cross-node via swarm mesh, etc). User explicitly asked for visibility.

4. Reorganized layout: xu4 moved to right column with same visual weight as
   odroid, so host numbering reads left-to-right (1 → 2).

5. Compact viewBox (1400x950 instead of 1400x900) to fit the new blocks.

Kept only standalone-adaptive.svg + svg-adaptive.md + README.md.
2026-08-27 17:08:18 +00:00
hermes d500dc04cc docs: drop 8 unused diagram variants
After user picked svg-adaptive as the winner, remove:
- mermaid.md, svg-embedded.md, svg-sized.md, svg-inline.md, svg-object.md,
  standalone.svg, standalone.html, ascii.txt

Kept:
- standalone-adaptive.svg + svg-adaptive.md
- README.md (will be refreshed in next commit)
2026-08-27 17:08:18 +00:00
hermes 8672f0db37 docs: add ascii variant and refresh README
- ascii.txt: pure ASCII layout for terminals and where SVG doesn't render
- README: full table of all 10 variants with what-works-in-gitea-1.27 verification
2026-08-27 12:08:33 +00:00
hermes cd1956aaeb docs: add adaptive SVG (prefers-color-scheme light/dark)
Same compact layout as standalone.svg but with @media query — same file
renders dark by default, light if browser/OS is in light mode.

Limitation: when embedded via <img> in gitea preview, prefers-color-scheme
is isolated per img element (browser behavior) — adaptivity only works
when opening the .svg directly in a browser tab.
2026-08-27 12:08:33 +00:00
hermes e8fa7e8be4 docs: add svg-sized, svg-inline, svg-object variants
Three more ways to embed standalone.svg in markdown:

- svg-sized.md: <img> with explicit width="1200" (sanitized style attr doesn't pass)
- svg-inline.md: full SVG inline in <details> — zoomable in preview but diff-unfriendly
- svg-object.md: <object data="..."> — TESTED via /api/v1/markdown, gitea 1.27
  sanitizes it out. Kept for comparison; doesn't work in our gitea UI.
2026-08-27 12:08:33 +00:00
hermes 7dab6c89ad docs: add svg-embedded variant (markdown referencing standalone.svg)
Test confirmed via /api/v1/markdown that Gitea 1.27 renders ![arch](path.svg)
as <img src=...> — SVG displays inline in PR preview and clickable for fullscreen.

Variant #4 alongside mermaid / svg / html. User picks one after review.
2026-08-27 12:03:50 +00:00
hermes 793908ae14 docs: add production architecture diagram in three formats
- README.md explains what's shown vs not, known TODOs, when to pick which
- mermaid.md: Mermaid flowchart, renders inline in Gitea PR preview
- standalone.svg: raw SVG, embeddable as image in any README/wiki
- standalone.html: HTML wrapper with dark theme + summary cards

All three show the same graph:
- 2 swarm nodes (odroid manager, xu4 worker)
- 7 stacks on odroid: gitea, hermes, hermes_infra, immich, brencher,
  brencher2, gmail_mcp, torrserv_proxy
- external: Keenetic router, Tailscale subnet, Client
- dead: nginx_nginx (Replicas=0)
- deploy flow: brencher -> stacks

Snapshot 2026-08-27, sources: docker_socket_proxy + gitea admin API
2026-08-27 11:57:44 +00:00
3 changed files with 777 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# Architecture diagram
![Architecture diagram](./standalone-adaptive.svg)
Snapshot: 2026-08-27. Light/dark theme via `prefers-color-scheme`.
## What
- **Left column:** external (Client, Tailscale, Keenetic) + lan + all 22 overlay networks. One block = one network.
- **Right column:** all stacks. Inside each stack — its nodes (containers).
## How to update
1. Re-fetch live state from the cluster:
```
curl http://docker_socket_proxy:2375/networks | python3 -m json.tool > /tmp/nets.json
curl http://docker_socket_proxy:2375/services | python3 -m json.tool > /tmp/services.json
curl http://docker_socket_proxy:2375/tasks?filters='{"desired-state":"running"}' > /tmp/tasks.json
```
2. Compare counts/labels against `standalone-adaptive.svg`. Update blocks that changed.
3. For new stacks/services: add a stack rect in the right column + 1+ node rects inside.
4. For new networks: add a network block in the left column at the matching height.
Convention:
- `class="net-fill"` — overlay network (amber border)
- `class="net-external-fill"` — Keenetic/lan (slate)
- `class="ext-client-fill"` — Client (violet border)
- `class="stack-fill"` — running stack (cyan border)
- `class="node-fill"` — running container
- `class="node-dead"` — dead/disabled (red dashed)
- IPs in node title reflect current state — refresh when IPs change
## Sources
- `docker_socket_proxy` (read-only): `/networks`, `/services`, `/tasks`, `/containers/{id}/json`
- `admin/ansible` repo: `poc/*/stack-compose.yml` for stack definitions
- Gitea admin API: `POST /api/v1/repos/admin/ansible/issues` for tickets about drift
+253
View File
@@ -0,0 +1,253 @@
# Architecture diagram — full prod map
> **Snapshot:** 2026-08-27 · sources: `docker_socket_proxy` + gitea admin API
>
> **Two views:**
> - This file — **Mermaid flow** (high-level topology, all elements)
> - `standalone-adaptive.svg` — **per-node detail** (IPs, container names)
```mermaid
flowchart LR
%% ==================== EXTERNAL ====================
subgraph EXT[" "]
direction TB
Client["Client<br/>tailscale"]:::client
Keenetic["Keenetic<br/>DNS · TLS"]:::external
Tailscale["Tailscale<br/>subnet router"]:::external
lan["lan<br/>192.168.1.0/24"]:::external
Client -->|https| Tailscale
Tailscale --> Keenetic
Keenetic -->|TLS term| lan
end
%% ==================== INGRESS / EGRESS ====================
subgraph IO[" "]
direction TB
ingress["ingress<br/>10.0.0.0/24"]:::egress
proxy_egress["squid_egress<br/>hermes_proxy<br/>admin"]:::egress
nginx_nets["nginx_ingress<br/>nginx_default<br/>(DEAD)"]:::egress
lan -.->|egress| ingress
end
%% ==================== STACKS (deployed via brencher) ====================
subgraph BRENCHER_DEPLOYED["via brencher (PROFILES env)"]
direction TB
b_gitea["gitea"]:::stack
b_hermes["hermes"]:::stack
b_hermes_infra["hermes_infra"]:::stack
b_immich["immich"]:::stack
b_gmail_mcp["gmail_mcp"]:::stack
b_torrserv["torrserv_proxy"]:::stack
b_brencher2["brencher2<br/>(deploy tool)"]:::deploy
end
ingress --> b_gitea
ingress --> b_hermes
ingress --> b_hermes_infra
ingress --> b_immich
ingress --> b_gmail_mcp
ingress --> b_torrserv
proxy_egress -.-> b_hermes_infra
b_brencher2 -.->|deploys| b_gitea
b_brencher2 -.->|deploys| b_hermes
b_brencher2 -.->|deploys| b_immich
b_brencher2 -.->|deploys| b_hermes_infra
b_brencher2 -.->|deploys| b_gmail_mcp
b_brencher2 -.->|deploys| b_torrserv
%% ==================== STACKS (standalone, not via brencher) ====================
subgraph STANDALONE["standalone (compose или ручной deploy)"]
direction TB
s_dsp["docker_socket_proxy"]:::stack
s_lampa["lampa-jackett<br/>(compose)"]:::stack
s_photosHelper["photosHelper<br/>(DEAD · Replicas: 0)"]:::dead
s_nginx["nginx<br/>(DEAD · Replicas: 0)"]:::dead
s_registry["registry<br/>(DEAD · Replicas: 0)"]:::dead
end
ingress --> s_dsp
ingress --> s_lampa
%% ==================== ZOMBIE STACKS (volumes only, no services) ====================
subgraph ZOMBIE["zombie stacks (volumes orphaned)"]
direction TB
z_nextcloud["nextcloud<br/>(4 volumes)"]:::dead
z_portainer["portainer<br/>(1 volume)"]:::dead
z_swarmpit["swarmpit<br/>(1 volume)"]:::dead
z_sstp["sstp · softether<br/>(4 volumes)"]:::dead
z_test["test<br/>(1 volume)"]:::dead
z_torr_cache["torr_cache<br/>(1 volume)"]:::dead
z_beszel["beszel-poc<br/>(2 volumes)"]:::dead
end
%% ==================== EPHEMERAL (gitea act_runner jobs) ====================
subgraph EPHEMERAL["gitea act_runner ephemeral jobs"]
direction TB
eph_jobs["~48 exited<br/>ephemeral job pods<br/>(random names)"]:::ephemeral
end
b_gitea -.->|spawns| eph_jobs
%% ==================== INTERNAL NETS (one per stack) ====================
subgraph INTERNAL["internal nets (12)"]
direction TB
gitea_net["gitea_gitea"]:::internal
hermes_net["hermes_hermes"]:::internal
hi_net["hermes_infra_default"]:::internal
immich_net["immich_default"]:::internal
gmail_net["gmail_mcp_default"]:::internal
torr_net["torrserv_proxy_default"]:::internal
brencher2_nets["brencher2-net +<br/>brencher2_default"]:::internal
dsp_net["dsp_default"]:::internal
lampa_net["lampa_default"]:::internal
b_gitea --> gitea_net
b_hermes --> hermes_net
b_hermes_infra --> hi_net
b_immich --> immich_net
b_gmail_mcp --> gmail_net
b_torrserv --> torr_net
b_brencher2 --> brencher2_nets
s_dsp --> dsp_net
s_lampa --> lampa_net
end
%% ==================== VOLUMES (153 total) ====================
subgraph VOLS["volumes (153 total, 18 mounted · 135 orphaned)"]
direction TB
vol_active["active: gitea_data · immich_* ·<br/>hermes_*_data · brencher_tmp ·<br/>docker_socket_proxy_*_data ·<br/>torrserv_proxy_data · lampa_*"]:::volumes
vol_orphaned["orphaned: 119 (no stack) ·<br/>nextcloud · portainer · sstp ·<br/>swarmpit · test · torr_cache ·<br/>beszel-poc · immich_postgres"]:::dead
end
%% ==================== SECRETS / CONFIGS (403 from socket proxy) ====================
subgraph SECRETS["secrets & configs (read-only proxy: 403)"]
direction TB
sec_known["known to exist in gitea app.ini:<br/>LFS_JWT_SECRET · JWT_SECRET ·<br/>SECRET_KEY · INTERNAL_TOKEN"]:::secret
sec_hermes["hermes-agent runtime secrets<br/>(gmail creds · telegram token)"]:::secret
end
%% ==================== STYLING ====================
classDef client fill:#0f172a,stroke:#a78bfa,color:#ddd6fe
classDef external fill:#1e293b,stroke:#94a3b8,color:#cbd5e1
classDef egress fill:#052e16,stroke:#22c55e,color:#bbf7d0
classDef stack fill:#0c4a6e,stroke:#22d3ee,color:#cffafe
classDef dead fill:#1f1717,stroke:#fb7185,color:#fecaca,stroke-dasharray: 4 2
classDef deploy fill:#422006,stroke:#fbbf24,color:#fde68a
classDef ephemeral fill:#1e1b4b,stroke:#818cf8,color:#c7d2fe,stroke-dasharray: 2 2
classDef internal fill:#1e1b4b,stroke:#818cf8,color:#c7d2fe
classDef volumes fill:#0f172a,stroke:#475569,color:#cbd5e1
classDef secret fill:#0f172a,stroke:#f59e0b,color:#fde68a,stroke-dasharray: 3 2
```
## Полная картина прода
### 🟢 Running stacks (12)
**Через `brencher` (PROFILES env):**
1. **gitea** — gitea_server + gitea_runner (act_runner для CI)
2. **hermes** — hermes-agent + hermes-gateway
3. **hermes_infra** — squid + sarg + hermes-ui + hermes-gateway + docker_socket_proxy + brencher-state-proxy
4. **immich** — server + database + redis + machine-learning
5. **gmail_mcp** — gmail-mcp-server + telegram-mcp-server
6. **torrserv_proxy** — reverseproxy + fileserver
7. **brencher2** — второй deploy tool (сам себя не деплоит)
**Standalone (не через brencher):**
8. **docker_socket_proxy** — standalone, для hermes-gateway
9. **lampa-jackett** — docker-compose, port 9117
**DEAD services (но стек определён):**
10. **photosHelper** (Replicas: 0, 1 volume)
11. **nginx** (Replicas: 0, 2 services, 5 volumes)
12. **registry** (Replicas: 0, 1 volume)
### 🟡 Zombie stacks (volumes, но 0 running services)
Volumes остались после того как сервисы удалили. 4–5 volumes на стек:
- **nextcloud** (4 volumes · config + данные)
- **sstp** (4 volumes · SoftEther VPN, конфиг + logs)
- **portainer** (1 volume · swarm UI)
- **swarmpit** (1 volume · swarm UI)
- **test** (1 volume)
- **torr_cache** (1 volume)
- **beszel-poc** (2 volumes · monitoring POC)
### 🟣 Ephemeral: gitea act_runner job pods
Когда CI job запускается в gitea, `act_runner` создаёт **ephemeral контейнер** со случайным именем (`romantic_wozniak`, `compassionate_goodall` и т.п.). После завершения контейнер остаётся в `exited` state. На текущий момент ~48 таких exited контейнеров.
Реестр: image `ghcr.io/immich-app/runner-images:ubuntu-latest` (определён в `poc/gitea/config.yaml`).
### 🔴 Volumes (153 total)
- **18 mounted** в running контейнеры
- **135 orphaned** (либо от zombie-стеков, либо anonymous)
Основные используемые:
- `gitea_data` — критичные данные gitea (NFS на 192.168.1.96:/root/volumes/gitea)
- `immich_*` — uploads, model-cache, postgres
- `hermes_infra_*_data`, `hermes_hermes_*_data`
- `brencher_tmp`, `brencher2_tmp` — git clones
- `lampa_jackett_config`
- `torrserv_proxy_data`
### 🔐 Secrets & configs
`/configs` и `/secrets` через socket-proxy **403** (требуется POST:1). Известные по другим источникам:
**В gitea `/data/gitea/conf/app.ini`:**
- `LFS_JWT_SECRET`
- `JWT_SECRET` (oauth2)
- `SECRET_KEY`
- `INTERNAL_TOKEN`
**В hermes-agent runtime:**
- Gmail API creds (для gmail_mcp server)
- Telegram bot token (для telegram_mcp server)
**Swarm configs** (из `poc/gitea/stack-compose.yml`):
- `runner_config` — `config.yaml` для act_runner
### 🗑️ Dead-overlay сети (сеть есть, контейнеров нет)
- `nginx_ingress` (10.0.3.0/24) — для nginx-proxy, но nginx Replicas=0
- `nginx_default` (10.0.4.0/24) — то же
Сети **живые** в swarm mesh, но не используются.
## Что НЕ показывает эта диаграмма
- Конкретные IP контейнеров (см. `standalone-adaptive.svg`)
- Cross-stack сети в деталях (см. SVG)
- Точные timestamps exited containers
- Полный список 119 orphaned volumes без stack'а
## Как обновить
Запусти в этом окружении:
```bash
# Stacks & services
curl http://docker_socket_proxy:2375/services | jq -r '.[] | .Spec.Labels["com.docker.stack.namespace"]' | sort -u
# Volumes per stack
curl http://docker_socket_proxy:2375/volumes | jq -r '.Volumes[] | "\(.Name) \(.Labels["com.docker.stack_namespace"] // "no-stack")"'
# Ephemeral containers (exited)
curl http://docker_socket_proxy:2375/containers/json?all=1 | jq '[.[] | select(.State=="exited")] | length'
# BRENCHER profiles (env var)
curl http://docker_socket_proxy:2375/containers/brencher_brencher-backend* 2>/dev/null
```
## Связанные
- `standalone-adaptive.svg` — per-node detail (IPs, container names)
- `admin/ansible#5` — re-deploy hermes_squid
- `admin/ansible#6` — pre-create socket_proxy overlay
- `admin/ansible#7` — gitea stack deploy / app.ini fix
+487
View File
@@ -0,0 +1,487 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1610 1145" font-family="ui-monospace, SFMono-Regular, monospace" font-size="10">
<title>Production architecture · internet / ingress-egress / stacks / internal-nets</title>
<desc>
4 columns:
1. Internet (Client, Tailscale, Keenetic, lan)
2. Ingress &amp; egress networks (10)
3. Stacks with nodes (12 stacks)
4. Internal-only networks (12, paired with their stack's y)
</desc>
<style>
.bg { fill: #020617; }
.grid-dot { fill: #1e293b; }
.title { fill: #e2e8f0; }
.col-label { fill: #94a3b8; font-size: 11; font-weight: bold; letter-spacing: 1px; }
.net-fill { fill: #422006; fill-opacity: 0.4; stroke: #f59e0b; }
.net-text { fill: #fde68a; }
.net-sub { fill: #fbbf24; font-size: 8; }
.net-external-fill { fill: #1e293b; fill-opacity: 0.5; stroke: #94a3b8; }
.net-external-text { fill: #cbd5e1; }
.net-io-fill { fill: #052e16; fill-opacity: 0.5; stroke: #22c55e; }
.net-io-text { fill: #bbf7d0; }
.net-internal-fill { fill: #1e1b4b; fill-opacity: 0.5; stroke: #818cf8; }
.net-internal-text { fill: #c7d2fe; }
.ext-client-fill { fill: #0f172a; stroke: #a78bfa; }
.ext-client-text { fill: #ddd6fe; }
.stack-fill { fill: #0c4a6e; fill-opacity: 0.3; stroke: #22d3ee; }
.stack-text { fill: #cffafe; font-weight: bold; }
.node-fill { fill: #0f172a; stroke: #475569; stroke-width: 1; }
.node-text { fill: #cbd5e1; }
.arrow-lan { stroke: #f59e0b; fill: none; }
.arrow-egress { stroke: #22c55e; fill: none; }
.arrow-internal { stroke: #818cf8; fill: none; }
.legend-text { fill: #cbd5e1; }
.footer { fill: #475569; }
@media (prefers-color-scheme: light) {
.bg { fill: #f8fafc; }
.grid-dot { fill: #cbd5e1; }
.title { fill: #0f172a; }
.col-label { fill: #475569; }
.net-fill { fill: #fef3c7; fill-opacity: 0.6; stroke: #b45309; }
.net-text { fill: #78350f; }
.net-sub { fill: #92400e; }
.net-external-fill { fill: #e2e8f0; fill-opacity: 0.7; stroke: #64748b; }
.net-external-text { fill: #1e293b; }
.net-io-fill { fill: #dcfce7; fill-opacity: 0.6; stroke: #16a34a; }
.net-io-text { fill: #14532d; }
.net-internal-fill { fill: #e0e7ff; fill-opacity: 0.6; stroke: #4f46e5; }
.net-internal-text { fill: #312e81; }
.ext-client-fill { fill: #faf5ff; stroke: #7c3aed; }
.ext-client-text { fill: #581c87; }
.stack-fill { fill: #ecfeff; fill-opacity: 0.4; stroke: #0e7490; }
.stack-text { fill: #0c4a6e; }
.node-fill { fill: #ffffff; stroke: #94a3b8; }
.node-text { fill: #1e293b; }
.arrow-lan { stroke: #b45309; }
.arrow-egress { stroke: #16a34a; }
.arrow-internal { stroke: #4f46e5; }
.legend-text { fill: #1e293b; }
.footer { fill: #94a3b8; }
}
</style>
<defs>
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
<circle cx="20" cy="20" r="0.5" class="grid-dot"/>
</pattern>
<marker id="a-lan" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#f59e0b"/>
</marker>
<marker id="a-egress" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#22c55e"/>
</marker>
<marker id="a-internal" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" fill="#818cf8"/>
</marker>
</defs>
<rect width="1610" height="1145" class="bg"/>
<rect width="1610" height="1145" fill="url(#grid)"/>
<text x="40" y="36" class="title" font-size="18" font-weight="bold">
Production architecture · 4 columns
</text>
<!-- ============== COL 1: INTERNET ============== -->
<text x="40" y="80" class="col-label">1. INTERNET</text>
<g>
<rect x="40" y="100" width="220" height="50" rx="5" class="ext-client-fill" stroke-width="2"/>
<text x="150" y="119" text-anchor="middle" class="ext-client-text" font-size="12" font-weight="bold">Client</text>
<text x="150" y="133" text-anchor="middle" class="ext-client-text" font-size="8">из tailscale-сети</text>
<text x="150" y="144" text-anchor="middle" class="ext-client-text" font-size="7">100.x.x.x</text>
</g>
<g>
<rect x="40" y="160" width="220" height="100" rx="5" class="net-external-fill" stroke-width="2"/>
<text x="150" y="178" text-anchor="middle" class="net-external-text" font-size="11" font-weight="bold">Keenetic router</text>
<text x="150" y="192" text-anchor="middle" class="net-external-text" font-size="8">192.168.1.1 · DNS · TLS term</text>
<text x="150" y="205" text-anchor="middle" class="net-external-text" font-size="7">.rudolf.keenetic.link → 192.168.1.96:443</text>
<text x="150" y="226" text-anchor="middle" class="net-external-text" font-size="10" font-weight="bold">Tailscale subnet</text>
<text x="150" y="240" text-anchor="middle" class="net-external-text" font-size="7">announces 192.168.1.0/24</text>
</g>
<g>
<rect x="40" y="270" width="220" height="50" rx="5" class="net-external-fill" stroke-width="2"/>
<text x="150" y="288" text-anchor="middle" class="net-external-text" font-size="12" font-weight="bold">lan</text>
<text x="150" y="303" text-anchor="middle" class="net-external-text" font-size="8">192.168.1.0/24 · физическая LAN</text>
</g>
<!-- ============== COL 2: INGRESS / EGRESS ============== -->
<text x="290" y="80" class="col-label">2. INGRESS / EGRESS</text>
<text x="290" y="338" class="col-label" font-size="9">могут выйти в интернет</text>
<g>
<rect x="290" y="345" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="358" class="net-io-text" font-size="10">ingress</text>
<text x="502" y="358" text-anchor="end" class="net-sub">10.0.0.0/24</text>
<text x="298" y="369" class="net-sub" font-size="7">swarm routing mesh</text>
</g>
<g>
<rect x="290" y="378" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="391" class="net-io-text" font-size="10">nginx_ingress</text>
<text x="502" y="391" text-anchor="end" class="net-sub">10.0.3.0/24</text>
<text x="298" y="402" class="net-sub" font-size="7">nginx-proxy · dead</text>
</g>
<g>
<rect x="290" y="411" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="424" class="net-io-text" font-size="10">nginx_default</text>
<text x="502" y="424" text-anchor="end" class="net-sub">10.0.4.0/24</text>
<text x="298" y="435" class="net-sub" font-size="7">nginx-proxy · dead</text>
</g>
<g>
<rect x="290" y="444" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="457" class="net-io-text" font-size="10">hermes_infra_squid_egress</text>
<text x="502" y="457" text-anchor="end" class="net-sub">10.0.12.0/24</text>
<text x="298" y="468" class="net-sub" font-size="7">squid</text>
</g>
<g>
<rect x="290" y="477" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="490" class="net-io-text" font-size="10">hermes_infra_admin</text>
<text x="502" y="490" text-anchor="end" class="net-sub">10.0.14.0/24</text>
<text x="298" y="501" class="net-sub" font-size="7">admin overlay</text>
</g>
<g>
<rect x="290" y="510" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="523" class="net-io-text" font-size="10">hermes_infra_hermes_proxy</text>
<text x="502" y="523" text-anchor="end" class="net-sub">10.0.15.0/24</text>
<text x="298" y="534" class="net-sub" font-size="7">hermes</text>
</g>
<g>
<rect x="290" y="543" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="556" class="net-io-text" font-size="10">docker_socket_proxy_socket_proxy</text>
<text x="502" y="556" text-anchor="end" class="net-sub">10.0.16.0/24</text>
<text x="298" y="567" class="net-sub" font-size="7">docker socket</text>
</g>
<g>
<rect x="290" y="576" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="589" class="net-io-text" font-size="10">docker_socket_proxy_admin</text>
<text x="502" y="589" text-anchor="end" class="net-sub">10.0.18.0/24</text>
<text x="298" y="600" class="net-sub" font-size="7">admin overlay</text>
</g>
<g>
<rect x="290" y="609" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="622" class="net-io-text" font-size="10">docker_socket_proxy_hermes_proxy</text>
<text x="502" y="622" text-anchor="end" class="net-sub">10.0.19.0/24</text>
<text x="298" y="633" class="net-sub" font-size="7">hermes</text>
</g>
<g>
<rect x="290" y="642" width="220" height="30" rx="4" class="net-io-fill"/>
<text x="298" y="655" class="net-io-text" font-size="10">docker_socket_proxy_squid_egress</text>
<text x="502" y="655" text-anchor="end" class="net-sub">10.0.20.0/24</text>
<text x="298" y="666" class="net-sub" font-size="7">squid</text>
</g>
<!-- ============== COL 3: STACKS &amp; PODS ============== -->
<text x="540" y="80" class="col-label">STACKS &amp; PODS</text>
<g><rect x="540" y="100" width="760" height="66" rx="8" class="stack-fill"/>
<text x="550" y="116" class="stack-text" font-size="12">gitea</text>
<g class="node-fill"><rect x="550" y="127" width="740" height="15" rx="3"/>
<text x="558" y="134" class="node-text" font-size="9">gitea_server.1.fx8lrhxza6s7xhjeqr46oiioa</text>
<text x="558" y="144" class="node-text" font-size="7" fill="#67e8f9">10.0.0.235 ingress · 10.0.17.13 gitea_gitea · 10.0.3.134 nginx_ingress</text>
</g>
<g class="node-fill"><rect x="550" y="145" width="740" height="15" rx="3"/>
<text x="558" y="152" class="node-text" font-size="9">gitea_runner.1.7qu01adpg71cpk5seaa22ve76</text>
<text x="558" y="162" class="node-text" font-size="7" fill="#67e8f9">10.0.0.6 ingress · gitea_gitea</text>
</g>
</g>
<g><rect x="540" y="171" width="760" height="66" rx="8" class="stack-fill"/>
<text x="550" y="187" class="stack-text" font-size="12">hermes</text>
<g class="node-fill"><rect x="550" y="198" width="740" height="15" rx="3"/>
<text x="558" y="205" class="node-text" font-size="9">hermes_hermes-agent.1.lbx30ov89d2nhukviexnb32sz</text>
<text x="558" y="215" class="node-text" font-size="7" fill="#67e8f9">hermes_hermes .11.9</text>
</g>
<g class="node-fill"><rect x="550" y="216" width="740" height="15" rx="3"/>
<text x="558" y="223" class="node-text" font-size="9">hermes_hermes-gateway.1.4ceprn5xwyd1jdvxk7r5i9mde</text>
<text x="558" y="233" class="node-text" font-size="7" fill="#67e8f9">10.0.0.204 ingress · hermes_hermes .11.10</text>
</g>
</g>
<g><rect x="540" y="242" width="760" height="138" rx="8" class="stack-fill"/>
<text x="550" y="258" class="stack-text" font-size="12">hermes_infra</text>
<g class="node-fill"><rect x="550" y="269" width="740" height="15" rx="3"/>
<text x="558" y="276" class="node-text" font-size="9">squid.1.l9zssq6kvlxwdw7ywlzri7miw</text>
<text x="558" y="286" class="node-text" font-size="7" fill="#67e8f9">.108 ingress · squid_egress .12.11 · hermes_proxy .15.44</text>
</g>
<g class="node-fill"><rect x="550" y="287" width="740" height="15" rx="3"/>
<text x="558" y="294" class="node-text" font-size="9">sarg.1.ucvl44g6djt49y4fgfydmia4y</text>
<text x="558" y="304" class="node-text" font-size="7" fill="#67e8f9">.107 ingress · admin .14.48</text>
</g>
<g class="node-fill"><rect x="550" y="305" width="740" height="15" rx="3"/>
<text x="558" y="312" class="node-text" font-size="9">hermes-ui.1.8mohposymmwn3sxcrupcf2a4h</text>
<text x="558" y="322" class="node-text" font-size="7" fill="#67e8f9">.106 ingress · hermes_infra_default .13.16 · hermes_proxy .15.43</text>
</g>
<g class="node-fill"><rect x="550" y="323" width="740" height="15" rx="3"/>
<text x="558" y="330" class="node-text" font-size="9">hermes-gateway.1.vrbji4iqmw2e69zq1cbf2ooqb</text>
<text x="558" y="340" class="node-text" font-size="7" fill="#67e8f9">hermes_proxy .15.47</text>
</g>
<g class="node-fill"><rect x="550" y="341" width="740" height="15" rx="3"/>
<text x="558" y="348" class="node-text" font-size="9">docker_socket_proxy.1.h80ql7v0epork75q3ij3h6gqf</text>
<text x="558" y="358" class="node-text" font-size="7" fill="#67e8f9">admin .14.46 · hermes_proxy .15.46</text>
</g>
<g class="node-fill"><rect x="550" y="359" width="740" height="15" rx="3"/>
<text x="558" y="366" class="node-text" font-size="9">brencher-state-proxy (dead)</text>
<text x="558" y="376" class="node-text" font-size="7" fill="#67e8f9">nginx_ingress · Replicas: 0</text>
</g>
</g>
<g><rect x="540" y="385" width="760" height="102" rx="8" class="stack-fill"/>
<text x="550" y="401" class="stack-text" font-size="12">immich</text>
<g class="node-fill"><rect x="550" y="412" width="740" height="15" rx="3"/>
<text x="558" y="419" class="node-text" font-size="9">immich_server.1.a83c7oac6f4ukkzhae1tsj2ym</text>
<text x="558" y="429" class="node-text" font-size="7" fill="#67e8f9">.225 ingress · immich_default .2.14</text>
</g>
<g class="node-fill"><rect x="550" y="430" width="740" height="15" rx="3"/>
<text x="558" y="437" class="node-text" font-size="9">immich_database.1.lstdz3kkogsrcg7vx7sae6rfa</text>
<text x="558" y="447" class="node-text" font-size="7" fill="#67e8f9">.13 ingress · immich_default .2.6</text>
</g>
<g class="node-fill"><rect x="550" y="448" width="740" height="15" rx="3"/>
<text x="558" y="455" class="node-text" font-size="9">immich_redis.1.85hnh4elu9xxl9jcs64v4u0u2</text>
<text x="558" y="465" class="node-text" font-size="7" fill="#67e8f9">immich_default .2.8</text>
</g>
<g class="node-fill"><rect x="550" y="466" width="740" height="15" rx="3"/>
<text x="558" y="473" class="node-text" font-size="9">immich_machine-learning.1.wnkv2chqsfaq3st7a0qgezt7b</text>
<text x="558" y="483" class="node-text" font-size="7" fill="#67e8f9">.11 ingress · immich_default .2.3</text>
</g>
</g>
<g><rect x="540" y="492" width="760" height="48" rx="8" class="stack-fill"/>
<text x="550" y="508" class="stack-text" font-size="12">brencher</text>
<g class="node-fill"><rect x="550" y="519" width="740" height="15" rx="3"/>
<text x="558" y="526" class="node-text" font-size="9">brencher_brencher-backend.1.vdeqwr97iafplzieas71sq55a</text>
<text x="558" y="536" class="node-text" font-size="7" fill="#67e8f9">.105 ingress · brencher-net .6.195 · brencher_default .7.195 · nginx_ingress .3.224</text>
</g>
</g>
<g><rect x="540" y="545" width="760" height="48" rx="8" class="stack-fill"/>
<text x="550" y="561" class="stack-text" font-size="12">brencher2</text>
<g class="node-fill"><rect x="550" y="572" width="740" height="15" rx="3"/>
<text x="558" y="579" class="node-text" font-size="9">brencher2_brencher-backend.1.ma4m7uabhe5lckk0fktaicf19</text>
<text x="558" y="589" class="node-text" font-size="7" fill="#67e8f9">.102 ingress · brencher2-net .5.12 · brencher2_default .1.12 · nginx_ingress .3.221</text>
</g>
</g>
<g><rect x="540" y="598" width="760" height="66" rx="8" class="stack-fill"/>
<text x="550" y="614" class="stack-text" font-size="12">gmail_mcp</text>
<g class="node-fill"><rect x="550" y="625" width="740" height="15" rx="3"/>
<text x="558" y="632" class="node-text" font-size="9">gmail_mcp_gmail-mcp-server.1.wxhzdnibwssve5trbwffzyzpu</text>
<text x="558" y="642" class="node-text" font-size="7" fill="#67e8f9">.10 ingress · gmail_mcp_default .8.6</text>
</g>
<g class="node-fill"><rect x="550" y="643" width="740" height="15" rx="3"/>
<text x="558" y="650" class="node-text" font-size="9">gmail_mcp_telegram-mcp-server.1.yehnql7ova2a65s6d6wly5y6m</text>
<text x="558" y="660" class="node-text" font-size="7" fill="#67e8f9">.6 ingress · gmail_mcp_default .8.3</text>
</g>
</g>
<g><rect x="540" y="669" width="760" height="66" rx="8" class="stack-fill"/>
<text x="550" y="685" class="stack-text" font-size="12">torrserv_proxy</text>
<g class="node-fill"><rect x="550" y="696" width="740" height="15" rx="3"/>
<text x="558" y="703" class="node-text" font-size="9">torrserv_proxy_reverseproxy.1.r906zcw2jyny6g6w56an1u193</text>
<text x="558" y="713" class="node-text" font-size="7" fill="#67e8f9">.15 ingress · torrserv_proxy_default .10.4</text>
</g>
<g class="node-fill"><rect x="550" y="714" width="740" height="15" rx="3"/>
<text x="558" y="721" class="node-text" font-size="9">torrserv_proxy_fileserver.1.zrum9hzhght93z9yxv0ae7hbs</text>
<text x="558" y="731" class="node-text" font-size="7" fill="#67e8f9">.12 ingress · torrserv_proxy_default .10.3</text>
</g>
</g>
<g><rect x="540" y="740" width="760" height="66" rx="8" class="node-dead"/>
<text x="550" y="756" class="node-dead-text" font-size="12">nginx (dead)</text>
<g class="node-dead"><rect x="550" y="767" width="740" height="15" rx="3"/>
<text x="558" y="774" class="node-text" font-size="9">nginx_nginx (jwilder/nginx-proxy)</text>
<text x="558" y="784" class="node-text" font-size="7" fill="#67e8f9">Replicas: 0 · no containers</text>
</g>
<g class="node-dead"><rect x="550" y="785" width="740" height="15" rx="3"/>
<text x="558" y="792" class="node-text" font-size="9">nginx_nginx_acme (acme-companion)</text>
<text x="558" y="802" class="node-text" font-size="7" fill="#67e8f9">Replicas: 0</text>
</g>
</g>
<g><rect x="540" y="811" width="760" height="48" rx="8" class="stack-fill"/>
<text x="550" y="827" class="stack-text" font-size="12">photosHelper</text>
<g class="node-fill"><rect x="550" y="838" width="740" height="15" rx="3"/>
<text x="558" y="845" class="node-text" font-size="9">photosHelper_nfs_crypt</text>
<text x="558" y="855" class="node-text" font-size="7" fill="#67e8f9">.9 ingress · photosHelper_default</text>
</g>
</g>
<g><rect x="540" y="864" width="760" height="48" rx="8" class="stack-fill"/>
<text x="550" y="880" class="stack-text" font-size="12">docker_socket_proxy</text>
<g class="node-fill"><rect x="550" y="891" width="740" height="15" rx="3"/>
<text x="558" y="898" class="node-text" font-size="9">docker_socket_proxy_hermes-gateway.1.kb09yigdxe9i7yqk9m0ecu2h5</text>
<text x="558" y="908" class="node-text" font-size="7" fill="#67e8f9">hermes_proxy .19.3 · dsp_default</text>
</g>
</g>
<g><rect x="540" y="917" width="760" height="48" rx="8" class="stack-fill"/>
<text x="550" y="933" class="stack-text" font-size="12">lampa-jackett (standalone, не swarm)</text>
<g class="node-fill"><rect x="550" y="944" width="740" height="15" rx="3"/>
<text x="558" y="951" class="node-text" font-size="9">lampa-jackett-1</text>
<text x="558" y="961" class="node-text" font-size="7" fill="#67e8f9">port 9117:9117 на хосте</text>
</g>
</g>
<!-- ============== COL 4: INTERNAL NETWORKS ============== -->
<text x="1330" y="80" class="col-label">4. INTERNAL NETS</text>
<text x="1330" y="94" class="col-label" font-size="9">только для своего стека</text>
<g>
<rect x="1330" y="106" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="117" class="net-internal-text" font-size="9">gitea_gitea</text>
<text x="1564" y="117" text-anchor="end" class="net-sub" font-size="7">10.0.17.0/24</text>
</g>
<g>
<rect x="1330" y="391" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="402" class="net-internal-text" font-size="9">immich_default</text>
<text x="1564" y="402" text-anchor="end" class="net-sub" font-size="7">10.0.2.0/24</text>
</g>
<g>
<rect x="1330" y="177" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="188" class="net-internal-text" font-size="9">hermes_hermes</text>
<text x="1564" y="188" text-anchor="end" class="net-sub" font-size="7">10.0.11.0/24</text>
</g>
<g>
<rect x="1330" y="248" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="259" class="net-internal-text" font-size="9">hermes_infra_default</text>
<text x="1564" y="259" text-anchor="end" class="net-sub" font-size="7">10.0.13.0/24</text>
</g>
<g>
<rect x="1330" y="604" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="615" class="net-internal-text" font-size="9">gmail_mcp_default</text>
<text x="1564" y="615" text-anchor="end" class="net-sub" font-size="7">10.0.8.0/24</text>
</g>
<g>
<rect x="1330" y="106" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="117" class="net-internal-text" font-size="9">torrserv_proxy_default</text>
<text x="1564" y="117" text-anchor="end" class="net-sub" font-size="7">10.0.10.0/24</text>
</g>
<g>
<rect x="1330" y="498" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="509" class="net-internal-text" font-size="9">brencher_brencher-net</text>
<text x="1564" y="509" text-anchor="end" class="net-sub" font-size="7">10.0.6.0/24</text>
</g>
<g>
<rect x="1330" y="516" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="527" class="net-internal-text" font-size="9">brencher_default</text>
<text x="1564" y="527" text-anchor="end" class="net-sub" font-size="7">10.0.7.0/24</text>
</g>
<g>
<rect x="1330" y="551" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="562" class="net-internal-text" font-size="9">brencher2_brencher-net</text>
<text x="1564" y="562" text-anchor="end" class="net-sub" font-size="7">10.0.5.0/24</text>
</g>
<g>
<rect x="1330" y="569" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="580" class="net-internal-text" font-size="9">brencher2_default</text>
<text x="1564" y="580" text-anchor="end" class="net-sub" font-size="7">10.0.1.0/24</text>
</g>
<g>
<rect x="1330" y="817" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="828" class="net-internal-text" font-size="9">photosHelper_default</text>
<text x="1564" y="828" text-anchor="end" class="net-sub" font-size="7">10.0.9.0/24</text>
</g>
<g>
<rect x="1330" y="870" width="240" height="16" rx="3" class="net-internal-fill"/>
<text x="1336" y="881" class="net-internal-text" font-size="9">docker_socket_proxy_default</text>
<text x="1564" y="881" text-anchor="end" class="net-sub" font-size="7">10.0.21.0/24</text>
</g>
<!-- connector dots on col 2 right edge -->
<circle cx="510" cy="360" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="393" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="426" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="459" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="492" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="525" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="558" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="591" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="624" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<circle cx="510" cy="657" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<!-- connector dots on col 4 left edge -->
<circle cx="1330" cy="114" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="399" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="185" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="256" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="612" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="275" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="506" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="559" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="506" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="559" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="825" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<circle cx="1330" cy="878" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<!-- col 2 (ingress/egress) -> nodes (col 3) -->
<line x1="510" y1="360" x2="550" y2="136" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="393" x2="550" y2="136" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="154" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="225" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="459" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="525" x2="550" y2="278" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="296" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="492" x2="550" y2="296" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="314" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="525" x2="550" y2="314" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="525" x2="550" y2="332" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="492" x2="550" y2="350" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="525" x2="550" y2="350" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="421" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="439" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="475" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="528" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="393" x2="550" y2="528" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="581" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="393" x2="550" y2="581" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="634" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="652" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="705" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="723" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="360" x2="550" y2="847" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="510" y1="624" x2="550" y2="900" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<!-- nodes (col 3) -> col 4 (internal nets) -->
<line x1="1300" y1="136" x2="1330" y2="114" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="154" x2="1330" y2="114" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="207" x2="1330" y2="185" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="225" x2="1330" y2="185" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="314" x2="1330" y2="256" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="421" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="439" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="457" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="475" x2="1330" y2="399" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="528" x2="1330" y2="506" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="528" x2="1330" y2="506" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="581" x2="1330" y2="559" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="581" x2="1330" y2="559" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="634" x2="1330" y2="612" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="652" x2="1330" y2="612" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="705" x2="1330" y2="275" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="723" x2="1330" y2="275" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="847" x2="1330" y2="825" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<line x1="1300" y1="900" x2="1330" y2="878" stroke="#a78bfa" stroke-width="0.8" stroke-opacity="0.4"/>
<!-- External flow arrows (col 1) -->
<line x1="150" y1="150" x2="150" y2="160" class="arrow-lan" stroke-width="1.5" marker-end="url(#a-lan)"/>
<line x1="150" y1="260" x2="150" y2="270" class="arrow-lan" stroke-width="1.5" marker-end="url(#a-lan)"/>
<line x1="260" y1="295" x2="290" y2="360" class="arrow-egress" stroke-width="1" stroke-dasharray="3 3" stroke-opacity="0.6" marker-end="url(#a-egress)"/>
<g>
<rect x="40" y="995" width="900" height="100" rx="8" class="stack-fill" stroke="#22d3ee"/>
<text x="55" y="1015" class="col-label">LEGEND</text>
<rect x="55" y="1025" width="22" height="14" rx="3" class="ext-client-fill"/>
<text x="85" y="1036" class="legend-text" font-size="9">Client (tailscale)</text>
<rect x="55" y="1043" width="22" height="14" rx="3" class="net-external-fill"/>
<text x="85" y="1054" class="legend-text" font-size="9">Keenetic / lan</text>
<rect x="240" y="1025" width="22" height="14" rx="3" class="net-io-fill"/>
<text x="270" y="1036" class="legend-text" font-size="9">ingress / egress net</text>
<rect x="240" y="1043" width="22" height="14" rx="3" class="net-internal-fill"/>
<text x="270" y="1054" class="legend-text" font-size="9">internal net (stack-private)</text>
<rect x="460" y="1025" width="22" height="14" rx="3" class="stack-fill"/>
<text x="490" y="1036" class="legend-text" font-size="9">stack</text>
<rect x="460" y="1043" width="22" height="14" rx="3" class="node-fill"/>
<text x="490" y="1054" class="legend-text" font-size="9">node (container)</text>
<circle cx="660" cy="1032" r="3" fill="#fbbf24" stroke="#92400e" stroke-width="1"/>
<text x="670" y="1036" class="legend-text" font-size="9">net connector (col 2)</text>
<circle cx="660" cy="1050" r="3" fill="#a78bfa" stroke="#5b21b6" stroke-width="1"/>
<text x="670" y="1054" class="legend-text" font-size="9">net connector (col 4)</text>
<line x1="55" y1="1070" x2="80" y2="1070" class="arrow-egress" stroke-width="1.5" stroke-dasharray="3 3" marker-end="url(#a-egress)"/>
<text x="90" y="1073" class="legend-text" font-size="9">egress flow</text>
<line x1="240" y1="1070" x2="265" y2="1070" class="arrow-internal" stroke-width="1" marker-end="url(#a-internal)"/>
<text x="275" y="1073" class="legend-text" font-size="9">internal flow (col 3 -&gt; col 4)</text>
<line x1="460" y1="1070" x2="485" y2="1070" stroke="#94a3b8" stroke-width="0.8" stroke-opacity="0.4"/>
<text x="495" y="1073" class="legend-text" font-size="9">node &lt;-&gt; network</text>
</g>
<text x="40" y="1135" class="footer" font-size="9">
snapshot 2026-08-27 · 4 columns · 10 egress + 12 internal + 5 external · 12 stacks
</text>
</svg>

After

Width:  |  Height:  |  Size: 31 KiB