Coolify Howsnip

How to Install Coolify on Ubuntu 24.04 LTS

Coolify is a self-hosted application deployment platform that allows you to deploy and manage applications, databases, and services from a single dashboard. It offers functionality similar to popular cloud deployment platforms while giving you full control over your infrastructure.

In this tutorial, you’ll learn how to install Coolify on Ubuntu 24.04 LTS, secure the installation, configure a custom domain with HTTPS, deploy your first application, and set up proper backup and recovery procedures.

Prerequisites

  • Ubuntu 24.04 LTS server
  • Root access or a user with sudo privileges
  • A supported 64-bit AMD64 or ARM64 system
  • A public IP address
  • A domain name (recommended for production use)

Step 1: Verify Ubuntu Version and System Requirements

Before installing Coolify, confirm that your server meets the platform’s requirements.

Check the Operating System

Run the following commands:

cat /etc/os-release
uname -m

Install Coolify Howsnip

These commands display the Ubuntu version and system architecture. Coolify’s installer supports Ubuntu LTS releases, including Ubuntu 24.04, on 64-bit AMD64 and ARM64 systems.

Check CPU, Memory, and Disk Space

Use the following commands:

nproc
free -h
df -h /

Install Coolify Howsnip

These commands show:

  • CPU core count
  • Available memory
  • Root filesystem disk usage
  • Check Available Storage Under /data

If the /data directory already exists, inspect its usage:

df -h /data 2>/dev/null || true

Install Coolify Howsnip

This helps identify existing data that may affect the installation.

Check Existing Network Listeners

Before installing Coolify, inspect which services are already listening on network ports:

sudo ss -tulpn

Pay special attention to:

  • Port 80 (HTTP)
  • Port 443 (HTTPS)
  • Port 8000 (Coolify dashboard)
  • Port 6001 (Realtime communication)
  • Port 6002 (Web terminal)

Existing web servers, reverse proxies, Docker containers, or applications using these ports can cause conflicts.

Important: A fresh server is recommended to avoid networking and service conflicts.

Step 2: Confirm SSH Access and Update Ubuntu

Since Coolify manages servers through SSH, ensure remote access is working correctly before proceeding.

Open a Secondary SSH Session

Keep an additional SSH session open in case any networking changes interrupt your primary connection.

ssh your_user@your_server_ip

Install Coolify Howsnip

Update Package Information

Refresh Ubuntu package metadata:

sudo apt update

Install Coolify Howsnip

Check for available upgrades:

apt list --upgradable 2>/dev/null

Install Coolify Howsnip

Install Available Updates

Upgrade installed packages:

sudo apt upgrade

Install Coolify Howsnip

This ensures your system is running the latest security and stability updates.

Check Whether a Reboot Is Required

After updating, run:

if [ -f /var/run/reboot-required ]; then
cat /var/run/reboot-required
else
echo "No reboot required"
fi

Install Coolify Howsnip

If Ubuntu indicates that a reboot is required, restart the server before continuing.

Verify:

  • SSH access works correctly
  • Sudo privileges are available
  • Updates complete without repository issues
  • Any required reboot has been completed

Step 3: Review Required Firewall Ports

Before modifying firewall rules, understand which ports Coolify requires.

Required Inbound Ports

  • 22/TCP SSH access
  • 80/TCP HTTP traffic and certificate generation
  • 443/TCP HTTPS traffic
  • 8000/TCP Initial Coolify dashboard access
  • 6001/TCP Realtime dashboard communication
  • 6002/TCP Coolify web terminal

Check Current Port Usage

sudo ss -lntp | grep -E ':(22|80|443|8000|6001|6002)\b' || true

Install Coolify Howsnip

This helps identify existing services occupying required ports.

Allow Required Firewall Rules

If UFW is already enabled, allow the necessary inbound ports:

sudo ufw allow 80/tcp comment 'Coolify HTTP'
sudo ufw allow 443/tcp comment 'Coolify HTTPS'
sudo ufw allow 8000/tcp comment 'Coolify initial dashboard'
sudo ufw allow 6001/tcp comment 'Coolify realtime direct access'
sudo ufw allow 6002/tcp comment 'Coolify web terminal direct access'

Warning: If UFW is currently disabled, avoid enabling it remotely without confirming that SSH access is properly allowed. Otherwise, you may lock yourself out of the server.

Important: Docker manages its own networking and firewall rules. Do not assume UFW automatically controls all Docker-published ports.

Step 4: Run the Official Coolify Installer

Install Curl

The installer requires curl.

sudo apt update
sudo apt install -y curl

Install Coolify Howsnip

Run the Stable Installer

For users with sudo privileges:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | sudo bash

Install Coolify Howsnip

If you are already logged in as root:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

Install Coolify Howsnip

The installation script automatically:

  • Installs required command-line tools
  • Installs Docker Engine if necessary
  • Configures Docker for Coolify
  • Creates files under /data/coolify
  • Generates SSH keys
  • Starts the Coolify control plane

Important: Docker installations from Snap are not supported. Remove any Snap-based Docker installation before running the installer.

Verify: The installer should complete successfully and display the initial Coolify dashboard URL, typically on port 8000.

Step 5: Verify Containers and Dashboard Access

Check Running Containers

Use Docker to view active containers:

sudo docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'

Install Coolify Howsnip

This confirms that Coolify services are running properly.

Verify Port 8000

Check whether the Coolify dashboard is listening:

sudo ss -lntp | grep ':8000' || true

Install Coolify Howsnip

Troubleshoot Failed Installations

List all containers:

sudo docker ps -a

Install Coolify Howsnip

View logs for the relevant container:

sudo docker logs --tail=200 coolify 2>/dev/null || true

Install Coolify Howsnip

If the dashboard is unavailable, verify that another process is not already using port 8000.

Step 6: Create the First Administrator Account

Open the dashboard using your server IP:

http://your_server_ip:8000

Install Coolify Howsnip

Create the first administrator account immediately.

Important Security Note: The first person who reaches the registration page can create the initial administrator account and gain full control of the platform.

Install Coolify Howsnip

Recommended Administrator Account Practices

Use:

  • A unique administrator email address
  • A strong password stored in a password manager
  • An administrator account that is not shared
  • An external recovery method outside the server

After registration, sign out and sign back in to confirm the account works correctly.

Install Coolify Howsnip

Step 7: Configure a Custom Domain and HTTPS

Using a dedicated domain provides secure HTTPS access and eliminates the need for direct dashboard ports.

Create a DNS Record

Point a hostname to your server:

coolify.example.com โ†’ your_server_ip

Use:

  • An A record for IPv4
  • An AAAA record only if IPv6 is properly configured

Verify DNS

Check DNS propagation:

dig +short A coolify.example.com
dig +short AAAA coolify.example.com

Configure the Dashboard URL

Inside Coolify, open the instance settings and set:

https://coolify.example.com

Install Coolify Howsnip

The built-in proxy will automatically manage routing and SSL/TLS certificates.

Verify HTTPS Access

curl -I https://coolify.example.com

Do not disable direct-access ports until HTTPS access is working reliably from another browser or network.

Step 8: Close Direct Dashboard Ports

After confirming that the dashboard works through your custom domain, remove public access to the direct-access ports.

Remove Temporary Firewall Rules

sudo ufw delete allow 8000/tcp
sudo ufw delete allow 6001/tcp
sudo ufw delete allow 6002/tcp

Review Current Firewall Configuration

sudo ufw status numbered

Keep access for:

  • SSH
  • Port 80
  • Port 443

If direct IP dashboard access is still required, restrict access to trusted IP addresses instead of exposing these ports publicly.

Step 9: Deploy Your First Application

Inside the Coolify dashboard:

  1. Create a Project
  2. Create or select an Environment
  3. Add an Application
  4. Choose a deployment source:
    • Public repository
    • Connected Git provider
    • Docker image
    • Other supported sources
  5. Select the deployment branch or build method
  6. Configure required environment variables
  7. Specify the application’s internal listening port

Security Best Practices

  • Grant only the minimum repository permissions required.
  • Store secrets as environment variables within Coolify.
  • Never commit production credentials to Git repositories.

Install Coolify Howsnip

Step 10: Connect an Application Domain

Create a DNS Record

Point your application domain to the server:

app.example.com โ†’ your_server_ip

Configure the Domain in Coolify

Add the domain in your application’s settings and route traffic through Coolify’s proxy. This approach is safer than manually exposing random host ports.

Test Application Availability

curl -I https://app.example.com

Monitor Resource Usage

Check running containers:

sudo docker ps

Install Coolify Howsnip

View container resource consumption:

sudo docker stats --no-stream

Install Coolify Howsnip

Check system resources:

free -h
df -h /

Install Coolify Howsnip

Verify: Your application should be accessible through HTTPS and no unnecessary management or database ports should be publicly exposed.

Step 11: Configure Coolify Backups

Backing up Coolify protects platform settings, deployment history, projects, and stored metadata.

Configure Instance Backups

Navigate to:

Settings โ†’ Backup

Enable backups and run an initial backup.

Important: Coolify instance backups do not include application databases, files, or volumes.

Save the APP_KEY

Retrieve the encryption key:

sudo grep '^APP_KEY=' /data/coolify/source/.env

Install Coolify Howsnip

Store the full APP_KEY securely in:

  • A password manager
  • An encrypted vault
  • Secure offline documentation

Do not store it only on the server.

Review Coolify SSH Keys

sudo find /data/coolify/ssh/keys -maxdepth 1 -type f -ls

Install Coolify Howsnip

These keys may be required when migrating to a replacement server.

Step 12: Back Up Application Data Separately

Coolify backups do not protect application data. Create separate backup strategies for each stateful service:

  • PostgreSQL databases
  • MySQL databases
  • MariaDB databases
  • MongoDB databases
  • ClickHouse databases
  • Uploaded files and persistent volumes
  • Object storage
  • External managed services

Best Practice

A backup is only useful if it can be restored.

Regularly test database restores in a temporary environment and verify that applications can access restored data successfully.

Important: Do not rely solely on VM snapshots for active databases.

Step 13: Update Coolify Safely

Before updating:

  • Create a successful Coolify backup.
  • Verify access to the APP_KEY.
  • Back up application data.
  • Confirm sufficient free storage.
  • Review release notes.

Update Using the Stable Channel

Run the installer again:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | sudo bash

This upgrades Coolify to the version currently available through the official stable channel.

Validate the Update

Verify running containers:

sudo docker ps

Install Coolify Howsnip

Check resource utilization:

sudo docker stats --no-stream

Install Coolify Howsnip

Confirm dashboard accessibility:

curl -I https://coolify.example.com

Install Coolify Howsnip

Verify application availability:

curl -I https://app.example.com

Install Coolify Howsnip

Also test an actual deployment before declaring the update complete.

Step 14: Perform a Final Security and Health Audit

After installation and deployment, run a final review.

Check Open Ports

sudo ss -tulpn

Install Coolify Howsnip

Review Docker Port Exposure

sudo docker ps --format 'table {{.Names}}\t{{.Ports}}'

Install Coolify Howsnip

Review UFW Rules

sudo ufw status numbered

Check Available Resources

free -h
df -h /
sudo docker system df

Install Coolify Howsnip

Verify the Following

  • Dashboard is available through HTTPS.
  • Ports 8000, 6001, and 6002 are not publicly exposed unless required.
  • SSH remains accessible.
  • Application traffic uses the expected proxy routes.
  • Database and admin interfaces are not publicly exposed.
  • Off-server backups exist.
  • APP_KEY is stored securely.
  • Applications have separate backup plans.
  • Restore procedures have been tested.
  • Sufficient CPU, RAM, and storage headroom remains for future deployments.

Conclusion

You have successfully installed Coolify on Ubuntu 24.04 and configured it for production use. The setup included system verification, firewall preparation, Docker-based installation, administrator account creation, HTTPS configuration, application deployment, backup planning, and update management.

One of the most important concepts to understand is the difference between the Coolify control plane and the applications it manages. A Coolify instance backup protects platform configuration and deployment metadata, but it does not protect application databases, uploaded files, or persistent volumes.

For a secure and reliable environment, maintain separate backup strategies, monitor Docker-exposed ports, and regularly test your recovery procedures.