01
Before you start
Coolify does on your own server what online deployment platforms do: it fetches your code, builds it into a Docker image, runs the container behind a reverse proxy and handles certificates. You keep control of the machine and your data. You need:
- A fresh Linux VPS running Debian or Ubuntu LTS (22.04 or 24.04). The official documentation recommends a server dedicated to Coolify: the script installs Docker and its own settings, and clashes with a server already busy with other services. If Docker was installed with
snap, remove it first: that version is not supported.
- At least 2 cores and 2 GB of memory, the documented minimum, and at least 10 GB of free disk; plan for a few tens of gigabytes for images, volumes and backups. That is the minimum for Coolify alone: every application, every database and above all every image build comes on top. A Node.js or Java build alone can take more than a gigabyte for a few minutes.
- A domain name whose DNS zone you manage, to serve the dashboard and your applications over HTTPS.
- Key-based SSH access for root. Coolify drives servers, including its own, by connecting over SSH as
root with a key it creates during installation. The documentation requires PermitRootLogin prohibit-password: the key is accepted, the password is not. If you set PermitRootLogin no while securing the VPS, Coolify will not be able to validate the server.
Check the value the SSH server actually applies:
sudo sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication'
Container or virtual machine. Coolify relies entirely on Docker. On a container VPS (LXC), Docker only works if the host has enabled nesting; the Coolify documentation does not cover this case, so test your first application before moving production onto it. The differences between the two kinds of VPS are explained in KVM or container VPS, and the basic security settings in securing a Linux VPS.
02
Install Coolify step by step
The official script must run as root. It installs curl, wget, git, jq and openssl, then Docker Engine, creates the /data/coolify folder, generates the SSH key it will use to drive the server and starts Coolify:
sudo -i
apt update && apt upgrade -y
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
As with any command that pipes a script into bash, you can download and read it first: curl -fsSL https://cdn.coollabs.io/coolify/install.sh -o install.sh, then bash install.sh. If Docker is already in place, the guide installing Docker on a VPS explains how it works; the Coolify script keeps it and adds its own logging settings.
When it finishes, check that the Coolify containers are running:
docker ps --format '{{.Names}}\t{{.Status}}'
Then open http://your-vps-address:8000 in your browser and create the administrator account right away: the first person to reach the registration page becomes the instance administrator. On an instance with no account, registration of the first administrator is only open for 10 minutes after startup; if the Setup window closed message appears, docker restart coolify reopens that window.
One last step before going further: put the APP_KEY aside, in a password manager for example. Coolify uses it to encrypt the credentials and private keys it stores; it is not included in backups, and without it the secrets of a restored backup are unreadable.
grep '^APP_KEY=' /data/coolify/source/.env
03
Deploy an application from Git
1. Give the dashboard a domain. Create a DNS A record, for example coolify.exemple.fr, pointing to the VPS IPv4 address, and check it with dig +short coolify.exemple.fr. In the Coolify settings, enter this domain with https:// in front: the built-in proxy (Traefik by default, Caddy as an option) then requests a Let's Encrypt certificate and renews it on its own. Port 80 must stay reachable, and if your DNS goes through a proxy service, turn it off while the certificate is validated.
2. Connect the repository. Create a project, then a resource from a Git repository. Coolify offers several kinds of access:
- public repository: cloned over HTTPS, without credentials;
- deploy key: read-only SSH access to a single private repository, the public key goes into the repository settings;
- GitHub App: access limited to the repositories you choose, with webhooks installed for you;
- GitLab or Gitea/Forgejo App: cloning of private repositories and merge request or pull request events.
3. Choose the build method. Nixpacks detects conventional projects on its own (Node.js, Python, PHP, Go…); Railpack, in beta, does the same with a newer engine; Static serves an already built site; Dockerfile builds the image described in your repository; Docker Compose deploys several services at once. With a Dockerfile, you know exactly what runs. Example for a Node.js application listening on port 3000:
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]
In the resource, set 3000 as the exposed port and a domain with https://, such as https://app.exemple.fr, with its own A record. The proxy forwards traffic to the container: there is no need to publish port 3000 on the public address. Passwords and API keys go into the resource's environment variables, never into the repository.
4. Redeploy on every push. With the GitHub App, it is automatic. With GitLab or Gitea/Forgejo, add a webhook to the repository with the URL and secret provided by Coolify. For a public repository or a deploy key, the webhook is set up by hand in the same way. Coolify can also create a preview deployment for each pull request and roll back to a previous version.
04
Ports and firewall
The Coolify documentation lists the incoming ports to open:
- 22/tcp (or your SSH port): administration, and Coolify's connection to its own server;
- 80/tcp and 443/tcp: the proxy, meaning your applications and certificate validation;
- 8000/tcp: the dashboard over the IP address;
- 6001/tcp and 6002/tcp: real-time dashboard updates and the in-browser terminal, when accessed over the IP address.
With UFW:
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 8000/tcp
sudo ufw allow 6001/tcp
sudo ufw allow 6002/tcp
sudo ufw enable
sudo ufw status verbose
Once the dashboard, real-time updates and terminal work through your domain over HTTPS, the documentation advises closing public access to ports 8000, 6001 and 6002, and keeping only 22, 80 and 443.
Watch out for the Docker trap. A port published by a container goes through filtering rules that Docker writes itself, ahead of UFW's: removing a UFW rule is therefore not enough to close a port published by Docker, and Coolify's ports are published that way. To really close them, the Coolify documentation points to the ufw-docker tool, or to a firewall placed in front of the server. For your applications, the rule is simple: go through the proxy and publish no container port without a reason. The guide installing Docker on a VPS details this behaviour.
05
Backups and updates
Back up Coolify itself. The instance backup contains projects, resources, settings and deployment history. It is scheduled in Settings > Backup (every night at midnight by default), written to /data/coolify/backups/coolify/ and can be sent to one or more S3-compatible storages. For a manual copy:
mkdir -p /data/backups
docker exec coolify-db pg_dump --format=custom --no-acl --no-owner --username=coolify coolify > /data/backups/coolify-db-manual-backup.dmp
test -s /data/backups/coolify-db-manual-backup.dmp && ls -lh /data/backups/coolify-db-manual-backup.dmp
Reminder: without the APP_KEY you put aside during installation, the secrets in this backup are unreadable.
Back up your applications. The instance backup contains neither your databases nor the contents of your volumes. Turn on the scheduled backup of each database created in Coolify, sent to S3 storage, and copy your applications' volumes by your own means. Always keep a copy off the server.
Update Coolify. In Settings > Updates, automatic updates are set along with their frequency; Coolify runs the instance backup before each update when it is scheduled. To move to a specific version by hand, without a v before the number:
curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh | bash -s NUMERO_DE_VERSION
Do not use install.sh to update: it resets ownership and permissions under /data/coolify. Run this way, upgrade.sh makes no backup: read the release notes, check that no deployment is running, and take a VPS snapshot right before. The system itself is updated as usual with apt update && apt upgrade.
06
What CloudFive offers
CloudFive has no ready-made Coolify plan: you install it yourself on a VPS, with root access, following this guide.
- Ryzen VPS: Ryzen 9 9950X, DDR5 memory and NVMe disk. Fast cores shorten image builds, and NVMe speeds up databases.
- Intel VPS: Xeon E5-2687W v4 and DDR4 ECC memory, more cores for less, for applications with steady traffic.
- Dedicated server: a whole machine with its own kernel, for many applications or anything that does not run in a container.
The Ryzen and Intel VPS are Linux containers (LXC) with nesting enabled: Docker and Docker Compose install with the official script, and Coolify is built on them. No custom kernel or kernel modules, however. Each VPS has its own dedicated IPv4 address with editable reverse DNS, a 1 Gb/s network and basic anti-DDoS protection included. From the customer area, you get an emergency console if a firewall rule locks you out, snapshots to take before an update, and reinstallation with Debian or Ubuntu to start again from a fresh server. The servers are in France, on CloudFive's network, AS218808, billed monthly with no commitment, with support in French 7 days a week by ticket, on Discord and by phone. The plan comparison is on the VPS page, and choosing the size in choosing a VPS.
07
When it is not the right choice
- You have a single site or a single simple application: Coolify alone takes up part of the VPS memory. A Docker Compose file started by hand, or web hosting for a PHP site, is enough (see hosting a website on a VPS).
- You are aiming for a cluster of several servers: other self-hosted platforms such as Dokploy or CapRover rely on Docker Swarm, whose cross-machine network depends on host kernel modules. In a container VPS we cannot guarantee it works, and Kubernetes is out of reach there: take a dedicated server.
- Your image builds are heavy on a small VPS: build the image elsewhere, for example in your Git forge's continuous integration, push it to a registry, and have Coolify deploy the ready-made image.
- You want to deploy on Windows: Coolify only runs on Linux. A Windows VPS suits Windows applications, not Coolify.
- You do not want to administer anything: Coolify simplifies deployments, not maintenance. The system, Docker, Coolify and backups remain your responsibility.
08
Frequently asked questions
How do I install Coolify on a VPS?
On a fresh Debian or Ubuntu LTS, switch to root with sudo -i and run the official script: curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash. It installs Docker and Coolify. Then open http://your-vps-address:8000 and create the administrator account right away.
What are the minimum requirements for Coolify?
The documentation asks for at least 2 cores and 2 GB of memory, on Linux amd64 or arm64, with at least 10 GB of free disk. That is the minimum for Coolify alone: plan for more depending on your applications, your databases and the size of your image builds.
Does Coolify work in an LXC container?
Coolify relies on Docker, which works in an LXC container when nesting is enabled, as on CloudFive's Ryzen and Intel VPS. The Coolify documentation does not cover this case: test a first application before production, and take a dedicated server for Docker Swarm or Kubernetes.
How do I deploy automatically from GitHub with Coolify?
Connect the repository with the GitHub App offered by Coolify: it installs the webhooks and every push triggers a new deployment. With GitLab or Gitea, add a webhook to the repository with the URL and secret provided by Coolify.
Which ports should I open for Coolify?
22 for SSH, 80 and 443 for the proxy and certificates, 8000 for the dashboard, 6001 and 6002 for real-time updates and the terminal. Once the dashboard is served on a domain over HTTPS, close 8000, 6001 and 6002: since Docker bypasses UFW, use ufw-docker or a firewall in front of the server.
How do I back up Coolify?
Schedule the instance backup in Settings > Backup, send it to S3 storage and keep the APP_KEY from /data/coolify/source/.env off the server: it is not in the backup, and without it restored secrets are unreadable. Back up your databases and volumes separately, as they are not in that backup.