Files
Elternbeirat/docs/unraid-infrastructure.md
T
TomandClaude Opus 5.5 35073273d1 Serve the PocketBase admin at redaktion.elternbeirat-igmh.info
- eb-pocketbase joins proxynet so NPM reaches it as eb-pocketbase:8090, and
  drops the 8090 host port; no service publishes a port on Unraid anymore
- docs/deployment.md covers the Strato CNAME, the NPM proxy host and the
  / -> /_/ redirect (full URL, or nginx adds its :4443 container port)
- PB_URL in .env.example and the editor docs point at the subdomain

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

91 lines
3.4 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 | Gitea Actions (`.gitea/workflows/deploy.yml`), no Compose Manager |
| 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 deployed by `.gitea/workflows/deploy.yml` as project `eb-stack`,
straight from the repo's `compose.yaml` (`deployment.md`). It is **not** a Compose
Manager stack: there is no copy of the compose file on the server. It shows up
on the Docker tab like any other container.
The `Gitea-Runner` container runs the deploy. It has `/var/run/docker.sock` mounted,
so the workflow's `docker compose` talks to the Unraid daemon directly.
> **Network names.** The stack's own network has the fixed name `eb-internal`.
> Changing a network name needs `docker compose down` and then `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`, `proxynet` | `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 stack, 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 |
| `redaktion.elternbeirat-igmh.info` | `http://eb-pocketbase:8090` (`/` → `/_/`) | 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` |