Files
Elternbeirat/docs/unraid-infrastructure.md
T
TomandClaude Opus 5.5 4968b62f06 Put the site behind NPM via proxynet, add Strato DynDNS updater
- eb-blazor joins the external network proxynet and publishes no host port;
  NPM forwards to eb-blazor:8080 by name
- Stack network gets the fixed name eb-internal (Compose Manager derives the
  project name from the stack folder); the dev overlay resets it and turns
  proxynet into a local network
- eb-ddns keeps the A record of elternbeirat-igmh.info at Strato current
- docs/unraid-infrastructure.md records the actual Unraid state

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:12:18 +02:00

90 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Unraid infrastructure
What runs on the Unraid host and how the website stack fits in. This is the
**actual state** on the server. How to deploy a new version: `deployment.md`.
## Host
| | |
|---|---|
| LAN IP | `192.168.1.14` |
| Web UI | `https://unraid.server:44302` |
| Version | Unraid OS 7.0.1 |
| Stack management | Compose Manager plugin, stack `elternbeirat` |
| Docker network for NPM | `proxynet` (created with `docker network create proxynet`) |
**Settings → Docker → Advanced View → Preserve user defined networks: Yes.**
Without it Unraid deletes `proxynet` on every Docker restart, and every container
attached to it fails to start.
## Website stack
The stack is created in the Compose Manager under the name `elternbeirat`. Its
compose content is a copy of `compose.yaml` **without the comments**, pasted
into the stack's config in the Unraid UI.
> **The project name comes from the stack folder, not from `name:`.** The
> Compose Manager starts the stack with `-p elternbeirat`, which overrides
> `name: eb-stack`. Renaming the stack in the UI does not change it. That is why
> `compose.yaml` gives the stack's network the fixed name `eb-internal` instead of
> the derived `elternbeirat_default`. Changing a network name needs **Compose Down**
> and then **Compose Up**; a plain Up fails because the existing containers still
> point at the old network.
| Container | Network | Container port | Host port |
|---|---|---|---|
| `eb-blazor` | `eb-internal`, `proxynet` | `8080` | – |
| `eb-pocketbase` | `eb-internal` | `8090` | `8090` |
| `eb-ddns` | `eb-internal` | – | – |
Persistent data: `/mnt/user/appdata/pocketbase/pb_data` → `/pb_data`.
## Nginx Proxy Manager
The container is called **`nginx`** and runs on the network `proxynet`.
| Container port | Host port |
|---|---|
| `8080` (HTTP) | `80` |
| `4443` (HTTPS) | `443` |
| admin UI | `7818` (`http://192.168.1.14:7818`) |
| config | `/mnt/cache/appdata/nginx` → `/config` |
> **Why `proxynet` and not `bridge`:** Docker's default `bridge` has no name
> resolution. On `proxynet` NPM reaches `eb-blazor:8080` by name, so the site needs
> no host port.
### Active proxy hosts
Except for the website, destinations use LAN host names (`unraid.server`),
resolved by the LAN DNS, never container IPs. That is why they kept working when
NPM moved from `bridge` to `proxynet`.
| Source | Destination | SSL |
|---|---|---|
| `elternbeirat-igmh.info`, `www.elternbeirat-igmh.info` | `http://eb-blazor:8080` | Let's Encrypt |
| `gitea.anticarnist.de` | `http://unraid.server:3005` | Let's Encrypt |
| `cloud.anticarnist.de` | `https://unraid.server:44304` | Let's Encrypt |
| `home.anticarnist.de` | `http://unraid.server:44303` | Let's Encrypt |
| `assistant.anticarnist.de` | `http://192.168.1.15:8123` | Let's Encrypt |
Further hosts (`*.katzenfunk.de`, `anticarnist.de` → `arch.server` / SearXNG)
exist but are offline and unused.
## Other containers on the host
Except for AdGuard, all of these run on `bridge` and have nothing to do with the
website. They are listed so it is clear which ports are taken.
| Container | Host ports |
|---|---|
| AdGuard-Home | own IP `192.168.1.7` (`br0`) |
| flame | `44303` |
| Gitea | `2205` (SSH), `3005` (HTTP) |
| Gitea-Runner | – |
| nextcloud | `44304` |
| piper | `10200` |
| postgresql15 | `5432` |
| SearXNG | `1234` (stopped) |
| UptimeKuma | `3001` |