mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-24 08:45:10 +00:00
71 lines
No EOL
2.4 KiB
Bash
71 lines
No EOL
2.4 KiB
Bash
# Production Environment Configuration for Zerops Deployment
|
|
# Copy this file and customize the values for your deployment
|
|
|
|
# =============================================================================
|
|
# REQUIRED ZEROPS SECRETS (set these in Zerops Dashboard > Environment Variables)
|
|
# =============================================================================
|
|
db_password=your-strong-database-password
|
|
admin_password=your-admin-password
|
|
site_name=your-domain.com
|
|
|
|
# =============================================================================
|
|
# OPTIONAL CONFIGURATION (modify as needed)
|
|
# =============================================================================
|
|
ADMIN_EMAIL=admin@your-domain.com
|
|
ERPNEXT_VERSION=v15.84.0
|
|
|
|
# Database Configuration (managed by Zerops)
|
|
DB_HOST=db
|
|
DB_PORT=3306
|
|
|
|
# Redis Configuration (managed by Zerops)
|
|
REDIS_CACHE=redis-cache:6379
|
|
REDIS_QUEUE=redis-queue:6379
|
|
|
|
# Application Configuration
|
|
SOCKETIO_PORT=9000
|
|
FRAPPE_SITE_NAME_HEADER=your-domain.com
|
|
|
|
# Nginx/Proxy Configuration
|
|
UPSTREAM_REAL_IP_ADDRESS=127.0.0.1
|
|
UPSTREAM_REAL_IP_HEADER=X-Forwarded-For
|
|
UPSTREAM_REAL_IP_RECURSIVE=off
|
|
PROXY_READ_TIMEOUT=120s
|
|
CLIENT_MAX_BODY_SIZE=50m
|
|
|
|
# Frappe/ERPNext Image Configuration
|
|
CUSTOM_IMAGE=frappe/erpnext
|
|
CUSTOM_TAG=v15.84.0
|
|
PULL_POLICY=always
|
|
RESTART_POLICY=unless-stopped
|
|
|
|
# Backup Configuration (optional)
|
|
# BACKUP_S3_BUCKET=your-backup-bucket
|
|
# BACKUP_S3_ACCESS_KEY=your-access-key
|
|
# BACKUP_S3_SECRET_KEY=your-secret-key
|
|
# BACKUP_S3_REGION=your-region
|
|
|
|
# Email Configuration (optional)
|
|
# MAIL_SERVER=smtp.your-email-provider.com
|
|
# MAIL_PORT=587
|
|
# MAIL_USERNAME=your-email@domain.com
|
|
# MAIL_PASSWORD=your-email-password
|
|
# MAIL_USE_TLS=true
|
|
|
|
# SSL/TLS Configuration (optional, if not using Zerops automatic SSL)
|
|
# LETSENCRYPT_EMAIL=your-email@domain.com
|
|
# SITES=your-domain.com
|
|
|
|
# =============================================================================
|
|
# DEPLOYMENT INSTRUCTIONS
|
|
# =============================================================================
|
|
# 1. Set the 3 required secrets in Zerops Dashboard:
|
|
# - db_password: Strong password for MariaDB (min 8 chars)
|
|
# - admin_password: Password for ERPNext admin user (min 8 chars)
|
|
# - site_name: Your domain name (e.g., mycompany.example.com)
|
|
#
|
|
# 2. Deploy using zerops.yml file
|
|
#
|
|
# 3. Access your ERPNext site at the domain specified in site_name
|
|
# - Username: administrator
|
|
# - Password: [value from admin_password secret] |