Single compose file for Coolify: MariaDB, Redis, idempotent site creation, migrations on redeploy, SERVICE_URL_FRONTEND_8080 routing, and Forgejo Actions readiness validation vendored from production-ci-readiness skill.
32 lines
929 B
Bash
32 lines
929 B
Bash
# Copy to Coolify Environment Variables (Service > Environment).
|
|
# Upstream reference: https://github.com/frappe/frappe_docker/blob/main/docs/02-setup/04-env-variables.md
|
|
|
|
# Image tag — pin for reproducible deploys
|
|
ERPNEXT_VERSION=v16.22.0
|
|
|
|
# MariaDB root password (required — change before production)
|
|
DB_PASSWORD=changeme
|
|
|
|
# Frappe site name — MUST match your Coolify domain
|
|
SITE_NAME=erp.example.com
|
|
|
|
# Frappe Administrator password
|
|
ADMIN_PASSWORD=changeme
|
|
|
|
# Nginx site header — for single-site Coolify, same as SITE_NAME
|
|
FRAPPE_SITE_NAME_HEADER=erp.example.com
|
|
|
|
# Run bench migrate on every deploy (set false to skip)
|
|
MIGRATE_SITES=true
|
|
|
|
# Gunicorn tuning (optional)
|
|
GUNICORN_THREADS=4
|
|
GUNICORN_WORKERS=2
|
|
GUNICORN_TIMEOUT=120
|
|
|
|
# Proxy / upload limits (optional)
|
|
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
|