- Wire admin approval UI to editorialService.approveEditorial so editorial accounts can move pending_approval -> active and log in. The approve button was permanently disabled and the service unreachable, so editorial users could never sign in. - Surface non-validation errors (e.g. SMTP failures) on the registration form instead of silently redirecting to the confirmation page. - Set BETTER_AUTH_URL default to the production domain in .env.example and compose.yaml so verification/reset links and the login origin check resolve against the live origin. - Add scripts/check-smtp.ts to verify SMTP connectivity against the configured transport. Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
services:
|
|
portal-db:
|
|
image: postgres:17-alpine
|
|
container_name: portal-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-portal}
|
|
POSTGRES_USER: ${POSTGRES_USER:-portal}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
|
|
volumes:
|
|
- portal-db-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-portal} -d $${POSTGRES_DB:-portal}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- portal-internal
|
|
|
|
portal-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: portal-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
DATABASE_URL: ${DATABASE_URL:-postgres://portal:change-me@portal-db:5432/portal}
|
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
|
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-https://redaktionen.leon-tonhaeuser.de}
|
|
IMMICH_BASE_URL: ${IMMICH_BASE_URL}
|
|
IMMICH_API_KEY: ${IMMICH_API_KEY}
|
|
SMTP_HOST: ${SMTP_HOST}
|
|
SMTP_PORT: ${SMTP_PORT:-587}
|
|
SMTP_USER: ${SMTP_USER}
|
|
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
|
SMTP_FROM: ${SMTP_FROM}
|
|
LEGAL_IMPRINT_URL: ${LEGAL_IMPRINT_URL}
|
|
LEGAL_PRIVACY_URL: ${LEGAL_PRIVACY_URL}
|
|
LEGAL_TERMS_URL: ${LEGAL_TERMS_URL}
|
|
depends_on:
|
|
portal-db:
|
|
condition: service_healthy
|
|
networks:
|
|
- portal-internal
|
|
- immich-net
|
|
|
|
volumes:
|
|
portal-db-data:
|
|
|
|
networks:
|
|
portal-internal:
|
|
internal: true
|
|
immich-net:
|
|
external: true
|