2026-06-03 23:52:02 +00:00
|
|
|
# =============================================================================
|
|
|
|
|
# .env.docker.example — template for `docker compose --env-file .env.docker up`
|
|
|
|
|
#
|
|
|
|
|
# DO NOT COMMIT .env.docker. It contains real secrets.
|
|
|
|
|
# Usage:
|
|
|
|
|
# cp .env.docker.example .env.docker
|
|
|
|
|
# $EDITOR .env.docker
|
|
|
|
|
# docker compose --env-file .env.docker up --build
|
2026-08-06 23:53:18 +02:00
|
|
|
#
|
|
|
|
|
# Variable names MUST match docker-compose.yaml ${VARIABLE} references.
|
2026-06-03 23:52:02 +00:00
|
|
|
# =============================================================================
|
|
|
|
|
|
|
|
|
|
# --- PostgreSQL (local container) ---------------------------------------------
|
|
|
|
|
POSTGRES_USER=crm_user
|
|
|
|
|
# Generate a strong password, e.g.:
|
|
|
|
|
# python -c "import secrets; print(secrets.token_urlsafe(24))"
|
2026-08-06 23:53:18 +02:00
|
|
|
DB_PASSWORD=STRONG_PASSWORD_HERE
|
2026-06-03 23:52:02 +00:00
|
|
|
POSTGRES_DB=crm_db
|
|
|
|
|
|
2026-07-26 20:45:42 +02:00
|
|
|
# --- Redis (REQUIRED) ---------------------------------------------------------
|
|
|
|
|
# Generate a strong password:
|
|
|
|
|
# python -c "import secrets; print(secrets.token_urlsafe(24))"
|
|
|
|
|
REDIS_PASSWORD=STRONG_REDIS_PASSWORD_HERE
|
|
|
|
|
|
|
|
|
|
# --- SECRET_KEY (REQUIRED, min 32 chars) -------------------------------------
|
2026-07-23 08:42:26 +02:00
|
|
|
# Session signing secret. MUST be at least 32 characters.
|
2026-06-03 23:52:02 +00:00
|
|
|
# Generate with:
|
|
|
|
|
# python -c "import secrets; print(secrets.token_urlsafe(48))"
|
2026-07-26 20:45:42 +02:00
|
|
|
SECRET_KEY=MIN_32_CHARS_GENERATE_WITH_secrets_token_urlsafe_32_xxxxxxxxxxxx
|
|
|
|
|
|
2026-08-06 23:53:18 +02:00
|
|
|
# --- Domain / Frontend URL ----------------------------------------------------
|
2026-07-26 20:45:42 +02:00
|
|
|
# The public URL where users access the LeoCRM frontend.
|
2026-08-06 23:53:18 +02:00
|
|
|
# Used for password reset links, invitations, CORS, etc.
|
|
|
|
|
APP_DOMAIN=https://crm.example.com
|
2026-07-26 20:45:42 +02:00
|
|
|
FRONTEND_URL=https://crm.example.com
|
|
|
|
|
CORS_ORIGINS=https://crm.example.com
|
2026-08-06 23:53:18 +02:00
|
|
|
|
|
|
|
|
# --- Environment --------------------------------------------------------------
|
2026-06-03 23:52:02 +00:00
|
|
|
ENVIRONMENT=production
|
|
|
|
|
LOG_LEVEL=INFO
|
2026-08-06 23:53:18 +02:00
|
|
|
SESSION_COOKIE_SECURE=true
|
|
|
|
|
STORAGE_PATH=/data/storage
|
2026-06-03 23:52:02 +00:00
|
|
|
|
2026-07-26 20:45:42 +02:00
|
|
|
# --- SMTP (for password reset emails) -----------------------------------------
|
|
|
|
|
SMTP_HOST=smtp.example.com
|
|
|
|
|
SMTP_PORT=587
|
2026-08-06 23:53:18 +02:00
|
|
|
SMTP_USER=noreply@example.com
|
2026-07-26 20:45:42 +02:00
|
|
|
SMTP_PASSWORD=YOUR_SMTP_PASSWORD
|
2026-08-06 23:53:18 +02:00
|
|
|
SMTP_FROM=noreply@example.com
|
|
|
|
|
SMTP_TLS=true
|
2026-07-26 20:45:42 +02:00
|
|
|
|
|
|
|
|
# --- bcrypt tuning ----------------------------------------------------------
|
2026-06-03 23:52:02 +00:00
|
|
|
BCRYPT_ROUNDS=12
|
2026-08-06 23:53:18 +02:00
|
|
|
|
|
|
|
|
# --- Admin user (seeded on first start) --------------------------------------
|
|
|
|
|
ADMIN_EMAIL=admin@example.com
|
|
|
|
|
ADMIN_PASSWORD=Admin123!
|
2026-08-13 23:50:04 +02:00
|
|
|
|
|
|
|
|
# --- MAIL_ENCRYPTION_KEY (REQUIRED) -------------------------------------------
|
|
|
|
|
# AES-256 encryption key for mail account passwords (Fernet).
|
|
|
|
|
# Generate with:
|
|
|
|
|
# python -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
|
|
|
MAIL_ENCRYPTION_KEY=GENERATE_STRONG_KEY_HERE
|