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>
This commit is contained in:
1 parent
53cee04396
commit
4968b62f06
6 files changed
+267
-28
No files matched your search
+43
-17
@@ -1,15 +1,13 @@
|
||||
# Base compose: production-like. Both services; only PocketBase's data is a volume,
|
||||
# everything else lives inside the images.
|
||||
#
|
||||
# The two `ports:` blocks below are TEMPORARY. The target state is NPM in front:
|
||||
# NPM terminates TLS and is the only path to the web app, and the editors reach
|
||||
# PocketBase through an NPM subdomain (#9). NPM still needs a target address and
|
||||
# port, so a port stays reachable either way -- the plan is to reach the containers
|
||||
# by name over a shared Docker network (e.g. eb-blazor:8080) instead of publishing
|
||||
# them on the LAN, and to drop these host mappings that expose the site and admin UI
|
||||
# to anyone on the LAN. While NPM is not set up yet, these mappings are the only way
|
||||
# onto the site and the admin UI.
|
||||
# Base compose: production-like. PocketBase, the web app and the DynDNS updater;
|
||||
# only PocketBase's data is a volume, everything else lives inside the images or
|
||||
# in this file.
|
||||
#
|
||||
# NPM runs outside this stack (the `nginx` container on Unraid) and reaches the web
|
||||
# app by name over the external Docker network `proxynet` (eb-blazor:8080), so the
|
||||
# web app publishes no host port. The `ports:` block on PocketBase is TEMPORARY: it
|
||||
# is the editors' way onto the admin UI until they reach it through an NPM subdomain
|
||||
# (#9). Unraid setup: docs/unraid-infrastructure.md.
|
||||
|
||||
# For local development use the dev overlay on top, which adds host ports and builds
|
||||
# the web image from source:
|
||||
# docker compose -f compose.yaml -f compose.dev.yaml up --build
|
||||
@@ -58,9 +56,37 @@ services:
|
||||
TZ: Europe/Berlin
|
||||
# The web app reads content from PocketBase over the compose network.
|
||||
PocketBase__BaseUrl: http://eb-pocketbase:8090
|
||||
ports:
|
||||
# TEMPORARY: reach the site on the LAN (http://<unraid>:5000) while NPM is not
|
||||
# in front yet. Replace once NPM terminates TLS and fronts the site (#9): join
|
||||
# the external NPM network and let NPM point at eb-blazor:8080 by name, so this
|
||||
# host mapping can go and the site is no longer open on the LAN.
|
||||
- "5000:8080"
|
||||
networks:
|
||||
# default: reach eb-pocketbase. proxynet: be reached by NPM as eb-blazor:8080.
|
||||
- default
|
||||
- proxynet
|
||||
|
||||
eb-ddns:
|
||||
# Keeps the A record of elternbeirat-igmh.info at Strato pointed at the current
|
||||
# public IP of the connection. The FritzBox can't do it: its single DynDNS slot
|
||||
# already serves anticarnist.de. www is a CNAME on the domain and follows on its
|
||||
# own. The whole config lives here in CONFIG, so the container needs no config
|
||||
# file and no volume -- only the password comes from the stack's env
|
||||
# (STRATO_DYNDNS_PASSWORD, never in the repo). The ":-" default keeps dev and
|
||||
# tests quiet, where the service is disabled. Setup: docs/deployment.md.
|
||||
image: qmcgaw/ddns-updater:2.10
|
||||
container_name: eb-ddns
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Europe/Berlin
|
||||
PERIOD: 5m
|
||||
CONFIG: >-
|
||||
{"settings":[
|
||||
{"provider":"strato","domain":"elternbeirat-igmh.info","password":"${STRATO_DYNDNS_PASSWORD:-}","ip_version":"ipv4"}
|
||||
]}
|
||||
|
||||
networks:
|
||||
default:
|
||||
# A fixed name instead of the project-derived one: the Compose Manager names the
|
||||
# project after the stack folder (elternbeirat_default otherwise). Changing it
|
||||
# needs Compose Down + Up; a plain Up leaves containers on the old network.
|
||||
name: eb-internal
|
||||
proxynet:
|
||||
# Created once on Unraid (`docker network create proxynet`) and shared with NPM.
|
||||
# The dev overlay turns it into a local network, so no machine but Unraid needs it.
|
||||
external: true
|
||||
Reference in new issue
Block a user