Merge the forum (community module) into main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -100,6 +100,8 @@ services:
|
||||
SMTP_URL: ${SMTP_URL:-}
|
||||
MAIL_FROM: ${MAIL_FROM:-Sorsfonalak <noreply@sorsfonalak.local>}
|
||||
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-http://localhost:3001}
|
||||
# The sky of the forum's daily thread.
|
||||
BACKEND_URL: http://backend:8081
|
||||
# Purchase notices to Telegram (TELEGRAM_BOT_TOKEN in .env.secrets).
|
||||
TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-}
|
||||
# OPENROUTER_API_KEY (not in git); without it analyses stay pending.
|
||||
@@ -112,6 +114,32 @@ 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
|
||||
# The links in the forum's e-mails.
|
||||
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-http://localhost:3001}
|
||||
# Uploaded avatars, in the same object storage as the backend's photos
|
||||
# (the override file points it at RustFS in development).
|
||||
S3_ENDPOINT: ${S3_ENDPOINT:-}
|
||||
S3_BUCKET: ${S3_BUCKET:-}
|
||||
S3_REGION: ${S3_REGION:-us-east-1}
|
||||
env_file:
|
||||
- path: .env.secrets
|
||||
required: false
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
read_only: true
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: services/frontend
|
||||
@@ -122,6 +150,12 @@ 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}
|
||||
# The forum's live connection, as the browser reaches it (production:
|
||||
# Caddy's /api/v1/forum/ws). Over an SSH tunnel, tunnel 8083 too, or the
|
||||
# forum falls back to polling every 30 seconds.
|
||||
FORUM_WS_URL: ${FORUM_WS_URL:-ws://localhost:8083/v1/forum/ws}
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user