Self-initializing Docker configurations for deploying ERPNext on Hanzo. No manual setup required - just deploy and go!
- Production: https://erp.hanzo.ai (single domain for all services)
- Development: https://erp-dev.hanzo.ai (single domain for all services)
compose.prod.yml- Production Docker Compose (self-initializing)compose.dev.yml- Development Docker Compose (self-initializing)ENVIRONMENT_VARIABLES.md- Environment variables referenceROUTING_ARCHITECTURE.md- How routing and services workHANZO_DEPLOYMENT.md- Detailed deployment guide
In your Hanzo/Dokploy UI, set these two variables:
DB_PASSWORD=<generate_secure_password>
ADMIN_PASSWORD=<your_admin_password>Generate a secure DB_PASSWORD:
openssl rand -base64 32- Create new app in Hanzo
- Choose "Docker Compose" deployment type
- Upload the appropriate compose file:
- Production:
compose.prod.yml - Development:
compose.dev.yml
- Production:
- Click Deploy
That's it! The system will automatically:
- Configure all services
- Create the database
- Initialize the ERPNext site
- Set up the scheduler
- Configure production/development settings
Once deployment is complete (3-5 minutes):
- Production: https://erp.hanzo.ai
- Development: https://erp-dev.hanzo.ai
Login with:
- Username:
Administrator - Password: The
ADMIN_PASSWORDyou set in Hanzo
Each environment includes:
- MariaDB - Database server
- Redis (2 instances) - Cache and queue management
- Backend - Frappe/ERPNext application server
- Frontend - Nginx web server (only service exposed via Traefik)
- WebSocket - Real-time communication
- Workers - Background job processors (short & long queues)
- Scheduler - Scheduled task runner
- Configurator - One-time setup service (auto-creates site)
Note: All traffic routes through the Frontend service. No additional domains or ports needed!
- External
hanzo-networkfor isolation - Traefik SSL/TLS termination
- Content Security Policy headers
- HTTPS redirect middleware
- tmpfs for temporary files
- MariaDB: 1GB buffer pool, 200 max connections
- Redis Cache: 512MB max memory
- Production mode enabled
- MariaDB: 512MB buffer pool, 100 max connections
- Redis Cache: 256MB max memory
- Developer mode enabled
# Find your backend container
docker ps | grep backend
# Run backup
docker exec <backend-container> bench --site <domain> backup --with-filesdocker exec <backend-container> bench --site <domain> clear-cache# All services
docker-compose -f compose.prod.yml logs
# Specific service
docker logs <container-name> -f- Update the image tag in compose file (all services use same version)
- Redeploy in Hanzo
- System will automatically run migrations
docker psCheck the configurator logs - it handles all initialization:
docker logs <configurator-container>- Verify Traefik labels in compose file
- Check domain configuration in Hanzo
- Ensure
hanzo-networkexists