kino in the stack: the vel's chat beside the 1.0 site

The chat left with NATS at the move to 1.0. uhhm/kino 0.1.2 has an
image now, so it comes back as a service under the profile `chat`: it
shares the site's network namespace like gdo and kron, dials the site
over dhd/1, signs people in at Rauthy as the client `chat`, listens on
3070 (the host Caddy's samtaler.tomtervel.no block already points
there) and keeps its history in kino_data.

The deploy takes CHAT_HOST, KINO_RELEASE and the secret
CHAT_OAUTH2_CLIENT_SECRET, refuses the profile without them, and writes
kino.env; deploy-tomtervel puts that file in place. README.md, "The
chat", has the four steps, the last being kino's key into DHD_KEYS.

Nothing changes until COMPOSE_PROFILES has `chat`: the profile keeps
the service out, and the new published port (3070) has nothing behind
it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDjRr9xfrtcDzcdJNr2
This commit is contained in:
blandClaude committed 2026-11-25 07:15:24 +01:00
1 parent e7c6ac6124
commit 9c9164f8c0
4 files changed
+97 -7

No files matched your search

+37 -3
View File
@@ -111,6 +111,8 @@ services:
- "127.0.0.1:3050:3000"
# kron (betaling.tomtervel.no -> here).
- "127.0.0.1:3080:3080"
# kino (samtaler.tomtervel.no -> here).
- "127.0.0.1:3070:3070"
portal:
build:
@@ -228,9 +230,40 @@ services:
# content repo's reload reaches the site over HTTPS, so no in-compose
# runner - and no docker.sock/podman.sock mount - is needed here.
# The vel's conversations are not in this stack for now: the chat that
# ran here (cnats) spoke to portal over NATS, and the one that dials a
# 1.0 site (uhhm/kino) is not published as an image yet.
# The vel's conversations (uhhm/kino): every group the content names is
# a room, and the site decides who gets in. kino dials the site over
# dhd/1 as gdo and kron do, and keeps its history in a file of its own
# in kino_data; what was said in the old chat (cnats, on NATS) did not
# come along. Reached by kasse's host Caddy on the published 3070
# (samtaler.tomtervel.no). A profile, since it needs its sign-in
# secret: COMPOSE_PROFILES has `chat` once CHAT_HOST, KINO_RELEASE and
# CHAT_OAUTH2_CLIENT_SECRET are set.
#
# The site must name kino's key in DHD_KEYS as `<key>=rooms,watch,may`;
# kino says its key as it starts (README.md, "The chat").
kino:
profiles: ["chat"]
image: project.uhhm.no/uhhm/kino:${KINO_RELEASE:-no-tag-set}
restart: unless-stopped
network_mode: "service:net"
env_file:
- path: kino.env
required: false
environment:
PORTAL_DHD: ${PORTAL_DHD:-}
# Must be the portal's own: a room names its site.
SITE_NAME: tomtervel
# Rauthy, and the client it knows the chat as.
OIDC_ISSUER: ${OIDC_ISSUER}
OAUTH2_CLIENT_ID: chat
PUBLIC_URL: https://${CHAT_HOST:-no-host-set}
COOKIE_SECURE: "true"
# 3070, not 3000: in the shared network 3000 is portal's.
LEPTOS_SITE_ADDR: 0.0.0.0:3070
volumes:
- kino_data:/var/lib/kino
depends_on:
- portal
# Where uploads go: the pictures and documents a desk attaches, and what
# `portal import` brings in. One node on this host, reachable only inside
@@ -249,6 +282,7 @@ volumes:
portal_data:
gdo_data:
kron_data:
kino_data:
caddy_data:
caddy_config:
nats_data: