push to maple-street
This commit is contained in:
+45
-5
@@ -15,13 +15,48 @@ services:
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgres://media:media@db:5432/media
|
||||
NEXTAUTH_URL: http://localhost:3000
|
||||
# Fallback base URL only. Generated links (magic link, invite, publish
|
||||
# emails) use the origin of the request that created them, so access via
|
||||
# http://<lan-ip>:3000 and https://<public-domain> both produce working
|
||||
# links. Keep NEXTAUTH_URL on http unless everything is served over TLS:
|
||||
# an https value makes Auth.js mark the session cookie Secure, and a
|
||||
# Secure cookie is rejected by browsers on plain-http LAN access.
|
||||
NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000}
|
||||
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET:-dev-only-secret-change-me}
|
||||
POSTMARK_FROM: media@localhost
|
||||
APP_ORIGIN: http://localhost:3000
|
||||
APP_ORIGIN: ${APP_ORIGIN:-http://localhost:3000}
|
||||
# Canonical origin for emailed links. Set this to the public URL when the
|
||||
# app is reachable from outside the LAN; empty means "use the request
|
||||
# origin" (convenient locally, but a client-controlled Host header).
|
||||
PUBLIC_ORIGIN: ${PUBLIC_ORIGIN:-}
|
||||
CHURCH_TIMEZONE: America/New_York
|
||||
# Shared secret for the HTTP cron routes (Authorization: Bearer …).
|
||||
CRON_SECRET: ${CRON_SECRET:-}
|
||||
# New emails become pending_approval unless explicitly auto-activated.
|
||||
AUTO_ACTIVATE_NEW_USERS: ${AUTO_ACTIVATE_NEW_USERS:-false}
|
||||
# This local stack has no mail provider by default; the console transport
|
||||
# prints the sign-in link. Set false once real mail is configured.
|
||||
MAGIC_LINK_DEV_TRANSPORT: ${MAGIC_LINK_DEV_TRANSPORT:-true}
|
||||
# Destructive E2E/test reset endpoint. Keep false in real deployments.
|
||||
ALLOW_DEV_RESET: ${ALLOW_DEV_RESET:-false}
|
||||
# Dev deployments write messages here; a named volume makes them
|
||||
# inspectable (`docker compose exec app ls /tmp/outbox`).
|
||||
OUTBOX_DIR: /tmp/outbox
|
||||
# Training attachments. Metadata is in Postgres; bytes live here.
|
||||
UPLOAD_DIR: /tmp/uploads
|
||||
# Archive destination inside the container for finished event photos and
|
||||
# every video's untouched camera original. For NFS, mount the export on the
|
||||
# Docker host, set MEDIA_ARCHIVE_DIR to that host path, and restart:
|
||||
# MEDIA_ARCHIVE_DIR=/mnt/nfs/glenloch docker compose up -d
|
||||
# The default is a local named volume for development.
|
||||
ARCHIVE_DIR: /archive
|
||||
NFS_SHARE: ${NFS_SHARE:-}
|
||||
volumes:
|
||||
- outbox-data:/tmp/outbox
|
||||
- uploads-data:/tmp/uploads
|
||||
- ${MEDIA_ARCHIVE_DIR:-archive-data}:/archive
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "${APP_PORT:-3000}:3000"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
@@ -34,8 +69,9 @@ services:
|
||||
POSTGRES_PASSWORD: media
|
||||
POSTGRES_DB: media
|
||||
# Host 5433 -> container 5432 (local postgres already holds 5432).
|
||||
# Override POSTGRES_PORT if 5433 is taken by another stack.
|
||||
ports:
|
||||
- "5433:5432"
|
||||
- "${POSTGRES_PORT:-5433}:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
@@ -51,7 +87,8 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: ["sh", "-c", "pnpm db:generate && pnpm db:migrate && pnpm db:seed"]
|
||||
target: tools
|
||||
command: ["sh", "-c", "pnpm db:migrate && pnpm db:seed"]
|
||||
environment:
|
||||
DATABASE_URL: postgres://media:media@db:5432/media
|
||||
depends_on:
|
||||
@@ -61,3 +98,6 @@ services:
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
outbox-data:
|
||||
uploads-data:
|
||||
archive-data:
|
||||
|
||||
Reference in New Issue
Block a user