What is Coolify?
Coolify is a self-hosted platform-as-a-service (PaaS) that allows you to deploy applications with git-based workflows, automatic SSL certificates, and built-in monitoring. It supports various technologies including:
Supported Technologies
- • Docker containers
- • Node.js applications
- • PHP applications
- • Python applications
- • Go applications
- • Rust applications
- • Static sites
Key Features
- • Git-based deployments
- • Automatic SSL certificates
- • Built-in monitoring
- • Database management
- • Environment variables
- • Team collaboration
Prerequisites
Before we begin, you'll need:
Server Requirements
- • RamNode VPS with at least 2GB RAM (4GB recommended)
- • Ubuntu 22.04 LTS or newer
- • A domain name pointed to your VPS IP address
- • SSH access to your server
Knowledge Requirements
- • Basic familiarity with command line operations
- • Understanding of web applications
- • Git basics
- • Domain DNS configuration
Setting Up Your RamNode VPS
First, ensure your VPS is properly configured:
ssh root@your-server-ipsudo apt update && sudo apt upgrade -ysudo apt install -y curl wget git unzip software-properties-common apt-transport-https ca-certificates gnupg lsb-release💡 Tip: Replace "your-server-ip" with your actual RamNode VPS IP address.
Initial Server Configuration
Set up firewall and create a non-root user:
sudo ufw allow ssh
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 8000/tcp
sudo ufw enablesudo adduser coolify
sudo usermod -aG sudo coolify
su - coolify⚠️ Warning: Make sure SSH is allowed before enabling UFW to avoid losing access!
Install Docker
Coolify requires Docker to function. Install Docker and Docker Compose:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.shsudo usermod -aG docker $USERsudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-composeLog out and back in for the changes to take effect, then verify Docker is working:
docker --version
docker-compose --version
docker run hello-world✅ Docker is now installed and ready for Coolify.
Install Coolify
Install Coolify using the official installation script:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash⏱️ Note: The installation process may take 5-10 minutes. The installer will download and configure all necessary components.
After installation, you can check if Coolify is running:
docker ps
sudo systemctl status coolify🚀 Coolify is now installed and running on port 8000!
Initial Coolify Setup
Access Coolify web interface and complete the initial setup:
http://your-domain.com:8000Initial Setup Steps:
- 1. Create your admin account (first user becomes admin)
- 2. Set your email address
- 3. Configure your instance URL
- 4. Set up your first server (localhost is pre-configured)
- 5. Complete the onboarding process
💡 Tip: Make note of your admin credentials - you'll need them to manage your Coolify instance.
Create Your First Project
Create a new project in Coolify:
Project Creation Steps:
- 1. Click "New Project" in the Coolify dashboard
- 2. Enter a project name and description
- 3. Select your server (localhost by default)
- 4. Choose your deployment type (Git Repository, Docker Image, etc.)
- 5. Configure your Git repository or Docker settings
💡 Git Integration: Coolify supports GitHub, GitLab, Bitbucket, and other Git providers with webhook integration for automatic deployments.
Deploy Your Application
Deploy your application using Coolify's intuitive interface:
🚀 Your application will be built and deployed automatically. You can monitor the deployment progress in real-time.
Configure Domain and SSL
Set up custom domains and automatic SSL certificates:
Domain Configuration:
- 1. Go to your application settings
- 2. Click on "Domains" tab
- 3. Add your custom domain (e.g., myapp.yourdomain.com)
- 4. Update your DNS records to point to your server IP
- 5. Enable "Generate SSL Certificate" option
- 6. Save the configuration
# A Record
myapp.yourdomain.com → your-server-ip
# Or CNAME Record
myapp.yourdomain.com → yourdomain.com🔒 Coolify will automatically generate and renew SSL certificates using Let's Encrypt once your domain is properly configured.
Database Setup
Add databases to your applications:
Environment Variables
Configure environment variables for your applications:
Setting Environment Variables:
- 1. Go to your application settings
- 2. Click on "Environment Variables" tab
- 3. Add key-value pairs
- 4. Mark sensitive variables as "Secret"
- 5. Save and redeploy if necessary
NODE_ENV=production
API_URL=https://api.myapp.com
JWT_SECRET=your-secret-key
REDIS_URL=redis://redis:6379
EMAIL_FROM=noreply@myapp.com💡 Security: Use the "Secret" option for sensitive data like API keys and passwords. These will be encrypted and hidden in the interface.
Monitoring and Logs
Monitor your applications and view logs:
Application Monitoring
- • Real-time application status
- • Resource usage metrics
- • Deployment history
- • Health checks
- • Performance metrics
Log Management
- • Real-time log streaming
- • Build and deployment logs
- • Application runtime logs
- • Log filtering and search
- • Log retention settings
Accessing Logs and Monitoring:
- 1. Go to your application dashboard
- 2. Click on "Logs" tab for runtime logs
- 3. Click on "Deployments" for build logs
- 4. Use "Monitoring" tab for metrics and health checks
- 5. Set up notifications for critical events
Troubleshooting Common Issues
Best Practices and Security
Security Best Practices
- • Keep Coolify updated to the latest version
- • Use strong passwords and enable 2FA
- • Regular backups of applications and databases
- • Monitor server resources and logs regularly
- • Use HTTPS for all applications
- • Secure environment variables properly
Optimization Tips
- • Right-size your RamNode VPS for your needs
- • Use appropriate resource limits for containers
- • Implement proper caching strategies
- • Monitor and optimize database performance
- • Use multi-stage Docker builds when possible
- • Clean up unused Docker images regularly
# Update Coolify to the latest version
curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh | bash🎉 Congratulations! You now have a fully functional Coolify PaaS running on your RamNode VPS. You can deploy multiple applications, manage databases, monitor performance, and scale as needed—all through an intuitive web interface!
