From 1bb21d7cbb5a852aede9470b85afe06019f8a97d Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 1 Nov 2026 13:15:04 +0100 Subject: [PATCH] Portal v0.10.2, and the host's own edits in the repo compose.yml and portal/Dockerfile on kasse have carried uncommitted edits since 2026-10-26: the learn cache, Ollama, and SITE_NAME: tomtervel. A deploy runs git reset --hard, which would take them away. SITE_NAME would then fall back to "Tomter Vel", the namespace tomter-vel, and from portal 0.9 the site would come up empty under it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e --- .env.example | 4 ++-- compose.yml | 8 ++++++++ portal/Dockerfile | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 3740c1c..86e663a 100644 --- a/.env.example +++ b/.env.example @@ -9,12 +9,12 @@ PORTAL_HOST=vel.klingenbergbygg.no ID_HOST=id.vel.klingenbergbygg.no # The portal version to run: a tag of https://project.uhhm.no/uhhm/portal -PORTAL_RELEASE=v0.6.0 +PORTAL_RELEASE=v0.10.2 # The content this instance serves, and reloads live on every push. CONTENT_REPO=https://prosjekt.klingenbergbygg.no/tomtervel/questions CONTENT_BRANCH=main -SITE_NAME="Tomter Vel" +SITE_NAME=tomtervel # Generated once by bootstrap.sh if left empty. NATS_PASSWORD= diff --git a/compose.yml b/compose.yml index 34a1766..a583d1a 100644 --- a/compose.yml +++ b/compose.yml @@ -90,6 +90,13 @@ services: LEPTOS_SITE_ADDR: 0.0.0.0:3000 LEPTOS_SITE_ROOT: site LEPTOS_HASH_FILES: "true" + LEARN_CACHE: /app/learn-cache + OLLAMA_HOST: http://100.64.0.1:11434 + # The namespace of everything this site keeps on NATS from portal 0.9. + # Must not change: a new name is a new, empty site. + SITE_NAME: tomtervel + volumes: + - learn_cache:/app/learn-cache ports: # Host-published for kasse's host Caddy (vel.klingenbergbygg.no -> here). # With --profile edge the bundled Caddy proxies portal:3000 internally @@ -138,6 +145,7 @@ volumes: caddy_config: nats_data: kanidm_data: + learn_cache: # Pin the project network subnet inside 172.16/12 so Kanidm's X-Forwarded-For # trust (kanidm/server.toml.tpl) stays valid under Podman — its default pool diff --git a/portal/Dockerfile b/portal/Dockerfile index 37e055f..623c69a 100644 --- a/portal/Dockerfile +++ b/portal/Dockerfile @@ -21,6 +21,7 @@ RUN curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/${PORTAL_RE && test -x /app/portal # A non-root user; the image ships nothing writable it needs. RUN useradd --system --no-create-home portal +RUN mkdir -p /app/learn-cache && chown portal /app/learn-cache USER portal EXPOSE 3000 CMD ["/app/portal"]