# Parallel run of the new (Sakani) UI next to the live portal: same database, # same Immich, own subdomain. Run it from the LIVE checkout so the service joins # the live compose project and its networks — see docs/operations.md §8: # # docker compose -f compose.yaml -f ../portal-sakani/compose.parallel.yaml up -d portal-app-next # # The image is built beforehand from the Sakani branch checkout: # docker build -t portal-app:sakani ../portal-sakani services: portal-app-next: image: ${PARALLEL_IMAGE:-portal-app:sakani} container_name: portal-app-next restart: unless-stopped ports: - "${PARALLEL_PORT:-3001}:3000" environment: DATABASE_URL: ${DATABASE_URL:-postgres://portal:change-me@portal-db:5432/portal} BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET} # Public URL of the parallel instance (links in e-mails, auth callbacks). BETTER_AUTH_URL: ${PARALLEL_BASE_URL:?set PARALLEL_BASE_URL in .env, e.g. https://neu.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:-https://leon-tonhaeuser.de/impressum} LEGAL_PRIVACY_URL: ${LEGAL_PRIVACY_URL:-https://leon-tonhaeuser.de/datenschutz} LEGAL_TERMS_URL: ${LEGAL_TERMS_URL:-https://leon-tonhaeuser.de/agb} # The live instance keeps running the album auto-rule sync and the cron # endpoint; the parallel one must not do either a second time. AUTO_RULE_SYNC_DISABLED: "true" CRON_SECRET: "" depends_on: portal-db: condition: service_healthy networks: - portal-internal - immich_default