# ============================================================================= # Environment for docker-compose.prod.yml — copy to .env.docker at the repo # root and fill in real values. NEVER commit the filled-in file. # # cp apps/cms/.env.docker.example .env.docker # docker compose -f docker-compose.prod.yml --env-file .env.docker up -d --build # ============================================================================= # --- Self-hosted Postgres ---------------------------------------------------- POSTGRES_USER=logos POSTGRES_PASSWORD=change-me-strong-password POSTGRES_DB=logos_cms # --- Payload core ------------------------------------------------------------ # Generate with: openssl rand -hex 32 PAYLOAD_SECRET=change-me-openssl-rand-hex-32 # --- Production build key ---------------------------------------------------- # Generate with: openssl rand -base64 32 NEXT_SERVER_ACTIONS_ENCRYPTION_KEY=change-me-openssl-rand-base64-32 # --- Public URLs (BAKED INTO THE CLIENT BUNDLE AT BUILD TIME) ----------------- # Must be the real public origins. Changing these requires a rebuild. NEXT_PUBLIC_SERVER_URL=https://cms.logos.co NEXT_PUBLIC_WEB_URL=https://logos.co # --- Host port mapping ------------------------------------------------------- # Host port that maps to the container's :3000. Put a reverse proxy (TLS) in # front of this in production. CMS_PORT=3001 # --- Postgres tuning (optional — defaults shown) ----------------------------- # PAYLOAD_DB_SCHEMA=payload # PAYLOAD_DB_POOL_MAX=10 # Schema auto-sync on boot. Keep "true" for the first deploy; flip to "false" # once SQL migrations are wired up so prod no longer mutates schema on boot. # PAYLOAD_DB_PUSH=true # Seed/refresh the CMS database from git content/ on every container boot. # Defaults to true. Set to "false" once editors manage content directly in # Admin and you don't want git content overwriting their changes on each boot. # CMS_SYNC_ON_BOOT=true # --- GitHub "Create PR" workflow (optional admin feature) -------------------- GITHUB_OWNER=logos-co GITHUB_REPO=logos-web GITHUB_APP_ID=123456 GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----" GITHUB_INSTALLATION_ID=12345678 GITHUB_PR_BASE_BRANCH=develop