erpnext/coolify.env.example
epistemophiliac f2f7e6355d Wire Coolify domain to SITE_NAME and document env template
SERVICE_FQDN_FRONTEND from the frontend domain drives site creation and nginx
headers; coolify.env.example adds CUSTOM_IMAGE/CUSTOM_TAG for Jenkins registry pulls.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 20:34:44 -04:00

36 lines
1.2 KiB
Text

# Paste into Coolify → erpnext service → Environment Variables
# After Jenkins green build, copy CUSTOM_IMAGE / CUSTOM_TAG from dist/coolify-image.env
# --- Custom image (required — from Jenkins Forgejo registry) ---
CUSTOM_IMAGE=git.aexoradao.com/epistemophiliac/erpnext
CUSTOM_TAG=main-26933f3
PULL_POLICY=always
# --- Secrets (required — change before first deploy) ---
DB_PASSWORD=replace-with-strong-secret
ADMIN_PASSWORD=replace-with-strong-secret
# --- Domain (automatic — do NOT set unless overriding) ---
# 1. In Coolify UI: add domain on service "frontend", port 8080
# 2. Coolify sets SERVICE_FQDN_FRONTEND → compose uses it for SITE_NAME + nginx header
# 3. Deploy AFTER domain is assigned (first deploy creates the Frappe site)
#
# SITE_NAME=
# FRAPPE_SITE_NAME_HEADER=
# --- 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