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:
@@ -18,6 +18,9 @@ MAIL_FROM=Sorsfonalak <hello@sorsfonalak.hu>
|
||||
# invite: new accounts need an invitation (default); open: anyone can sign up
|
||||
SIGNUP_MODE=invite
|
||||
|
||||
# The forum (docs/kozosseg.md): it always runs, visitors see it once this is set
|
||||
# FORUM_URL=http://forum:8083
|
||||
|
||||
# Image version; every deployment rewrites it
|
||||
TAG=latest
|
||||
|
||||
|
||||
@@ -186,6 +186,22 @@ services:
|
||||
logging: *logging
|
||||
restart: unless-stopped
|
||||
|
||||
# The forum (docs/kozosseg.md): its own service on the same database and
|
||||
# login; switched on for the visitors by FORUM_URL in the frontend below.
|
||||
forum:
|
||||
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-forum:${TAG:-latest}
|
||||
environment:
|
||||
DATABASE_URL: postgres://sorsfonalak:${POSTGRES_PASSWORD}@postgres:5432/sorsfonalak
|
||||
LOG_DIR: /logs
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
read_only: true
|
||||
volumes:
|
||||
- logs:/logs
|
||||
logging: *logging
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
image: ${REGISTRY_PREFIX:-registry.sagifer.com/sagifer/sorsfonalak}-frontend:${TAG:-latest}
|
||||
environment:
|
||||
@@ -193,6 +209,8 @@ services:
|
||||
HOROSCOPE_API_URL: http://horoscope-api:8080
|
||||
# Absolute links of the share previews (og:image).
|
||||
PUBLIC_BASE_URL: https://${DOMAIN}
|
||||
# The forum: off until FORUM_URL=http://forum:8083 is in .env (no menu item, its pages 404).
|
||||
FORUM_URL: ${FORUM_URL:-}
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
@@ -222,7 +240,7 @@ services:
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
# Backend and worker logs (backend.YYYY-MM-DD.log, worker…, worker-ai…).
|
||||
# Backend, worker and forum logs (backend.YYYY-MM-DD.log, worker…, worker-ai…, forum…).
|
||||
logs:
|
||||
caddy-data:
|
||||
caddy-config:
|
||||
|
||||
Reference in New Issue
Block a user