Overview
Coolify is a self-hosted platform-as-a-service (PaaS) similar to Dokploy but with more features including built-in monitoring, database backups, and GitHub Actions integration.Recommended upgrade from Dokploy if you need better monitoring, backups, and more integration options.
Why Coolify?
Better UI/UX
More polished interface than Dokploy
Built-in Monitoring
Comprehensive metrics and log aggregation
Automatic Backups
Database backups with S3 integration
GitHub Actions
Advanced CI/CD integration
Comparison vs Dokploy
| Feature | Dokploy | Coolify |
|---|---|---|
| Web UI | Good | Excellent |
| SSL Management | ✅ Let’s Encrypt | ✅ Let’s Encrypt |
| Monitoring | Basic | Advanced |
| Database Backups | Manual | Automated |
| GitHub Integration | Basic | GitHub Actions |
| Multi-Server | No | Yes |
| Resource Overhead | Medium | Medium-High |
| Community | Growing | Mature |
Prerequisites
Same as Dokploy:- Hetzner CPX32 (4 vCPU, 8GB RAM) or equivalent
- Ubuntu 24.04 LTS
- Root access
- Domain with DNS access
Installation
Step 1: Prepare VPS
Step 2: Configure Firewall
Step 3: Install Docker
Step 4: Install Coolify
One-line installer:- Install Docker (if needed)
- Set up Coolify containers
- Configure Traefik reverse proxy
- Initialize PostgreSQL for Coolify metadata
- Set up monitoring stack
Step 5: Access Dashboard
- Email: your-email@example.com
- Password: Strong password (save to password manager)
Initial Configuration
1. Connect Git Provider
- Settings → Git Sources → Add New
- Select GitHub or GitLab
- Generate Personal Access Token (PAT)
- Paste token and save
repo(full control)read:packageswrite:packages
2. Configure Email (Optional)
For deployment notifications:- Settings → Email Configuration
- Add SMTP details (e.g., Gmail, SendGrid)
- Test email delivery
3. Set Up S3 Backup Storage (Optional)
For automated database backups:- Settings → Backup
- Add S3 credentials:
- Access Key ID
- Secret Access Key
- Bucket name
- Region
You can use AWS S3, Backblaze B2, or any S3-compatible storage.
Deployment Workflow
Phase 1: Infrastructure
1. PostgreSQL 18
- Resources → New → Database → PostgreSQL
-
Configuration:
-
Storage:
-
Backups (Coolify feature):
- Deploy
2. Redis 7
- Resources → New → Database → Redis
-
Configuration:
- Deploy
Phase 2: Migrations
- Resources → New → Application
-
Git Source:
-
Environment Variables:
-
Advanced:
- Deploy and monitor logs
Phase 3: Applications
Main App
- Resources → New → Application
-
Git Source:
-
Build Arguments:
-
Environment Variables:
-
Domain:
-
Health Check:
-
Resources:
- Deploy
API Service
Follow same pattern with:Marketing Website
GitHub Actions Integration
Coolify supports advanced CI/CD with GitHub Actions:1. Generate Coolify API Token
- Settings → API Tokens → Generate New
- Copy token (save securely)
2. Add GitHub Secrets
In GitHub repository:- Settings → Secrets and variables → Actions
- Add secrets:
3. Create Workflow
.github/workflows/deploy.yml:
main automatically triggers Coolify deployment.
Monitoring & Logs
Built-in Metrics
Coolify dashboard shows:- CPU usage per container
- Memory usage per container
- Network I/O
- Disk usage
- Request rate
- Response times
Log Aggregation
- Resources → [app-name] → Logs
- View real-time logs with filtering:
- Search by keyword
- Filter by log level
- Time range selection
- Export logs
Alerts
Configure notifications:- Settings → Notifications
-
Add notification channels:
- Slack
- Discord
- Telegram
- Webhook
-
Set up alerts for:
- Deployment failures
- Health check failures
- High CPU/Memory usage
- Disk space warnings
Database Backups
Automated Backups
- Resources → ripplecore-postgres → Backups
-
Configuration:
- Save and enable
Manual Backup
- Resources → ripplecore-postgres → Backups
- Create Backup Now
- Download or send to S3
Restore from Backup
- Resources → ripplecore-postgres → Backups
- Select backup
- Restore
- Confirm (this will replace current database)
Migration from Dokploy
Parallel Testing Approach (Recommended)
- Keep Dokploy running on main VPS
- Spin up new VPS (Hetzner CX22, €4.49/month)
- Install Coolify on test VPS
- Deploy RippleCore to Coolify
- Test thoroughly (functionality, performance)
- Compare experience and features
- Decide migration path
Direct Migration Steps
If migrating from Dokploy to Coolify on same VPS:1. Export Dokploy Data
2. Stop Dokploy
3. Install Coolify
Follow installation steps above.4. Restore Data
5. Deploy Applications
Follow deployment workflow above. Estimated migration time: 2-3 hoursDNS Cutover
If using different VPS:- Deploy everything to new VPS
- Test with
/etc/hostsoverride - Update DNS A records to new IP
- Wait for propagation (1-48 hours)
- Monitor new VPS for 24 hours
- Decommission old VPS
Troubleshooting
Build Failures
Build Failures
Issue: Build failing in CoolifyCheck:
- Build context is
.(monorepo root) - Dockerfile path is correct
- Build arguments are set
- Logs show specific error
SSL Certificate Issues
SSL Certificate Issues
Issue: Let’s Encrypt SSL failingFix:
- Verify DNS points to VPS:
dig app.yourdomain.com - Check port 80/443 open:
ufw status - Wait for DNS propagation
- Check Coolify logs: Settings → Logs
Database Connection Failed
Database Connection Failed
Issue: Apps can’t connect to PostgreSQLFix:
- Verify connection string format
- Check PostgreSQL is running:
docker ps | grep postgres - Test connection:
GitHub Actions Not Triggering
GitHub Actions Not Triggering
Issue: Webhook not deployingFix:
- Verify API token is correct
- Check GitHub webhook delivery logs
- Ensure Coolify webhook URL is accessible
- Test webhook manually:
Performance Optimization
Resource Allocation
Recommended for Hetzner CPX32:Caching Strategy
Coolify supports Redis caching (already configured in RippleCore):- Evidence data: 5-minute TTL
- Session data: 8-hour TTL
- Static assets: CDN integration
CDN Integration
For static assets:- Resources → [app] → Storage
- Configure S3-compatible CDN
- Set cache headers
- Enable compression
Pros & Cons
Advantages
- Better UI than Dokploy
- Advanced monitoring
- Automated backups
- GitHub Actions
- Multi-server support
- Active community
Limitations
- More resource overhead
- Steeper learning curve
- More complex setup
- Higher memory usage
Cost Comparison
Hetzner CPX32 (€11.99/month)
Dokploy:- App overhead: ~500MB RAM
- Total available: ~7.5GB RAM for apps
- App overhead: ~1.5GB RAM
- Total available: ~6.5GB RAM for apps
With S3 Backups
Backblaze B2 (cheapest):- 10GB storage: ~€0.50/month
- Download: €0.01/GB
- 10GB storage: ~€2.30/month
- Download fees apply
When to Choose Coolify
Choose Coolify over Dokploy if:- ✅ You need built-in monitoring
- ✅ Automated backups are critical
- ✅ Using GitHub Actions for CI/CD
- ✅ Planning multi-server deployment
- ✅ Want better UI/UX experience
- ✅ Need advanced notification system
- ⚠️ Current setup works well
- ⚠️ Team prefers simpler platform
- ⚠️ Don’t need advanced features
- ⚠️ Want to minimize resource overhead
Next Steps
Test in Parallel
Deploy Coolify on test VPS (CX22, €4.49/month)
Migrate from Dokploy
Follow migration guide above
Set Up Monitoring
Configure alerts and log aggregation
Configure Backups
Set up automated S3 backups
Coolify provides the best balance of features and simplicity for teams ready to upgrade from Dokploy.
