Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What Coolify Does

Coolify gives you a dashboard where you add a project, connect a Git repository or name a container image, set a domain, and click Deploy. It builds the application with Docker, starts it, puts it behind a reverse proxy, and requests a TLS certificate for the domain. It can also start databases and ready-made services, and one dashboard can manage further servers it reaches over SSH.

The servers, the data, and the upkeep stay yours: operating system updates, backups of your applications, and the firewall are still your job.

Before You Install

  • Use a fresh server: Coolify installs Docker and runs its own proxy on ports 80 and 443. On a server that already serves websites with Nginx or Apache, the two collide. Start from a clean install.
  • Size: the project documents minimum requirements for Coolify itself (at the time of writing two CPU cores, 2 GB of memory, and 10 GB of disk, on amd64 or arm64). Builds need more on top, and they are the heaviest part.
  • Distribution: the install script supports Debian-based and Red Hat-based distributions, among others; non-LTS Ubuntu releases need the manual install. Check the project's current list for your release.

Install with the Project's Script

The documented install is a script run as root (with sudo as below, or from a root shell). Download it, read it, then run it:

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

The script installs Docker if it is missing, places Coolify's files under /data/coolify, and starts Coolify's containers. At the end it prints the dashboard address, on port 8000.

Create the Admin Account at Once

The first person to open the dashboard registers the first account, and that account controls the server with root access. Open the address straight after the install finishes, register with a strong password, and turn on two-factor login in your profile. Then set a domain for the dashboard itself in the settings, so it is served over HTTPS through the proxy.

Firewall Ports

PortPurposeOpen to
22SSHYour addresses
80, 443The proxyEveryone
8000DashboardSetup only
6001, 6002Live updates, terminalSetup only

Once the dashboard has its own domain, close 8000, 6001, and 6002 to the internet. Ports published by Docker bypass UFW (see Docker port mapping), so use a firewall in your provider's control panel if one is available, and check from outside with nmap.

Coolify manages the server it runs on over SSH with a key it creates. If you harden SSH, key login for the account Coolify uses must keep working; test in a second session before you close the first.

Deploy a First Project

  1. Point an A record for the application's domain at the server (see DNS record types).
  2. In the dashboard, create a project and open its production environment.
  3. Add a resource: a public repository, a private one through a deploy key or Git app, a Dockerfile, a Compose file, or an image.
  4. Enter the domain with https:// in front and set the environment variables the application needs.
  5. Click Deploy and follow the build log. The certificate is requested once the domain resolves to the server.

Back Up Coolify Itself

Coolify keeps its settings in its own database and its files under /data/coolify. The .env file in /data/coolify/source holds the key that encrypts stored secrets; a database backup does not include it, and without it the stored secrets cannot be read after a restore. Create database backups under Settings, then Backup, and keep them and a copy of the .env file off the server. Data of your applications lives in Docker volumes and needs its own backups; databases started from the dashboard can be given scheduled backups to S3-compatible storage. The overall plan is in the 3-2-1 backup rule.

Updates

The dashboard shows when a new version is out and can update itself, by hand or on a schedule. Read the release notes and take a snapshot first. Operating system updates are separate: set them up with automatic security updates.

Was this answer helpful?
Loading...