# ============================================================================== # Documize Community Edition v5.14.0 — Environment Variables # ============================================================================== # # USAGE: # 1. Copy this file: cp .env.template .env # 2. Fill in every value marked ⚠️ # 3. NEVER commit .env to version control # 4. Add .env to your .gitignore: echo ".env" >> .gitignore # # All variables here are referenced in docker-compose.yml via ${VARIABLE_NAME} # ============================================================================== # ── MySQL Database ───────────────────────────────────────────────────────────── # Name of the database Documize will use (no need to change) MYSQL_DATABASE=documize # MySQL user that Documize connects as (no need to change) MYSQL_USER=documize # ⚠️ Password for the documize MySQL user # Rules: min 16 chars, mix of upper/lower/numbers/symbols # Used in BOTH the db service AND the DOCUMIZEDB connection string below # Generate: openssl rand -base64 24 MYSQL_PASSWORD=xu05mFDSeCLTMJDjaAAUqr/7Fcv1fbEU # ⚠️ Password for the MySQL root account (admin use only, not used by Documize) # Generate: openssl rand -base64 24 MYSQL_ROOT_PASSWORD=xu05mFDSeCLTMJDjaAAUqr/7Fcv1fbEU # ── Documize Application ─────────────────────────────────────────────────────── # Port Documize listens on (inside the container — matches docker-compose ports mapping) DOCUMIZE_PORT=5001 # ⚠️ Password hashing salt — must be a random string of at least 32 characters # Generate: openssl rand -hex 32 # CRITICAL: Set this ONCE before the first run. Changing it later will # invalidate ALL existing user passwords and lock everyone out. DOCUMIZE_SALT=52c7337659a635c8541d097c78ac6b93851dabaa09d190337cf0a99265afe9f9 # ── SMTP Email Notifications (optional) ─────────────────────────────────────── # Leave blank to disable email. All five values must be set to enable it. # Hostname of your SMTP server (e.g. smtp.gmail.com, mail.example.com) SMTP_HOST= # SMTP port — typically 587 (STARTTLS) or 465 (SSL/TLS) SMTP_PORT=587 # SMTP authentication username (usually your full email address) SMTP_USER= # ⚠️ SMTP authentication password or app-specific password SMTP_PASSWORD= # From address shown on outgoing Documize emails SMTP_SENDER=documize@example.com