Rauthy as a compose profile: sign-in in Norwegian, off until asked for
dns / dns (push) Successful in 4s

A rauthy service under the profile of the same name, its config here
without secrets, and rauthy.env written by the deploy from Actions
secrets. OIDC_ISSUER moves portal's and the chat's sign-in to it,
RAUTHY_API_KEY lets portal make accounts there. konto.tomtervel.no in
DNS and kasse's Caddy, beside id. Nothing runs until RAUTHY_HOST, the
three secrets and the profile are set.

Tried locally: the config starts, the issuer is https://<host>/auth/v1/,
and a Norwegian browser gets the pages in nb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-07 22:33:46 +01:00
1 parent 5524b1be01
commit 961d090b7d
8 files changed
+163

No files matched your search

+30
View File
@@ -81,6 +81,32 @@ services:
ports:
- "127.0.0.1:8443:8443"
# Rauthy: sign-in, account pages and account mail in Norwegian, as an
# alternative to Kanidm (which has no Norwegian). A profile, off unless
# COMPOSE_PROFILES has `rauthy`; with it, portal and the chat sign in
# here when OIDC_ISSUER is set, and portal makes accounts here with
# RAUTHY_API_KEY. Its database is embedded (hiqlite), in rauthy_data.
# Host-published for kasse's host Caddy (RAUTHY_HOST -> here).
rauthy:
profiles: ["rauthy"]
image: ghcr.io/sebadob/rauthy:${RAUTHY_TAG:-0.37.2}
restart: unless-stopped
env_file:
- path: rauthy.env
required: false
environment:
PUB_URL: ${RAUTHY_HOST:-no-host-set}
RP_ID: ${RAUTHY_HOST:-no-host-set}
# Rauthy wants the port spelled out.
RP_ORIGIN: https://${RAUTHY_HOST:-no-host-set}:443
extra_hosts:
- "host.containers.internal:host-gateway"
volumes:
- ./rauthy/config.toml:/app/config.toml:ro
- rauthy_data:/app/data
ports:
- "127.0.0.1:8090:8080"
portal:
build:
context: ./portal
@@ -163,6 +189,9 @@ services:
# Must be the portal's own: a new name is a new, empty chat.
SITE_NAME: tomtervel
KANIDM_URL: https://${ID_HOST}
# Set, the chat signs in through it instead of Kanidm (Rauthy:
# https://<RAUTHY_HOST>/auth/v1/). Empty is unset.
OIDC_ISSUER: ${OIDC_ISSUER:-}
PUBLIC_URL: https://${CHAT_HOST}
COOKIE_SECURE: "true"
ports:
@@ -189,6 +218,7 @@ volumes:
caddy_config:
nats_data:
kanidm_data:
rauthy_data:
learn_cache:
# Pin the project network subnet inside 172.16/12 so Kanidm's X-Forwarded-For