Forum: a service of its own and the /forum pages

services/forum (axum, port 8083) on the same database and login, in the
forum schema (migration 0038, which also adds the moderator role):
nicknames, profiles with shared signs, topics, threads with listening or
advice intent, two-level replies, read marks and followed threads,
reactions as ratings with points and ranks, newcomer limits (lifted by a
purchase), moderation with reasons, bans and a log. Integration tests run
in CI.

The frontend's /forum pages (light by default, dark on request, phone
first with a desktop layout) are switched on by FORUM_URL; the /api/v1
proxy sends /api/v1/forum/* to the forum service. Concept and status:
docs/kozosseg.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 10:29:49 +00:00
co-authored by Claude Opus 5.5
parent fa46dcb757
commit 36b38525c3
52 changed files with 6782 additions and 11 deletions
+18
View File
@@ -108,6 +108,22 @@ services:
read_only: true
restart: unless-stopped
# The forum (services/forum): its own service on the same database and login.
forum:
build:
context: .
dockerfile: services/forum/Dockerfile
image: sorsfonalak/forum:latest
ports:
- "8083:8083"
environment:
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD:-sorsfonalak-dev}@postgres:5432/sorsfonalak
depends_on:
postgres:
condition: service_healthy
read_only: true
restart: unless-stopped
frontend:
build:
context: services/frontend
@@ -118,6 +134,8 @@ services:
environment:
BACKEND_URL: http://backend:8081
HOROSCOPE_API_URL: http://horoscope-api:8080
# Empty: the forum is switched off (no menu item, its pages 404).
FORUM_URL: ${FORUM_URL:-http://forum:8083}
depends_on:
backend:
condition: service_healthy