Use stable SITE_NAME instead of SERVICE_FQDN_FRONTEND for site identity. On redeploy: reuse existing site volume, recover from duplicate empty site after domain change, and bench rename-site when folder name differs.
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
# Paste into Coolify → erpnext service → Environment Variables
|
|
|
|
# --- Custom image (always :main = latest Jenkins build) ---
|
|
CUSTOM_IMAGE=git.aexoradao.com/epistemophiliac/erpnext
|
|
CUSTOM_TAG=main
|
|
PULL_POLICY=if_not_present
|
|
|
|
# --- Secrets (required — change before first deploy) ---
|
|
DB_PASSWORD=replace-with-strong-secret
|
|
ADMIN_PASSWORD=replace-with-strong-secret
|
|
|
|
# --- Site identity (CRITICAL for production) ---
|
|
# Set SITE_NAME once to your canonical Frappe site name (usually your public domain).
|
|
# Do NOT rely on SERVICE_FQDN_FRONTEND alone — changing Coolify domain without SITE_NAME
|
|
# used to create a second empty site. SITE_NAME stays fixed; change Coolify domain freely.
|
|
SITE_NAME=erp.aexoradao.com
|
|
|
|
# --- Domain (automatic from Coolify UI) ---
|
|
# Assign domain on service "frontend", port 8080 → SERVICE_FQDN_FRONTEND / SERVICE_URL_FRONTEND_8080
|
|
|
|
# --- Apps installed on first site creation only (order matters) ---
|
|
INSTALL_APPS=erpnext,payments,hrms,lending,lms
|
|
|
|
# --- Redeploy behaviour ---
|
|
MIGRATE_SITES=true
|
|
RESTART_POLICY=unless-stopped
|
|
|
|
# --- Optional tuning ---
|
|
GUNICORN_THREADS=4
|
|
GUNICORN_WORKERS=2
|
|
GUNICORN_TIMEOUT=120
|
|
PROXY_READ_TIMEOUT=120
|
|
CLIENT_MAX_BODY_SIZE=50m
|
|
UPSTREAM_REAL_IP_ADDRESS=127.0.0.1
|
|
UPSTREAM_REAL_IP_HEADER=X-Forwarded-For
|
|
UPSTREAM_REAL_IP_RECURSIVE=off
|