Skip to content

Self-host Coolify

Your own Heroku-style PaaS on one VM, with the dashboard kept private.

Deploy on exe.dev

Shelley handles the setup. About 15 minutes.

Prefer a terminal?
curl -fsSL https://exe.dev/deploy/coolify/prompt.txt | ssh exe.dev new --prompt=/dev/stdin

Coolify is a self-hosted PaaS: a dashboard that builds your apps from Git (with or without a Dockerfile), runs Docker images and Compose files, starts databases with one click, puts them behind a reverse proxy, and backs them up. It's what people install on a VPS when they leave Heroku, Vercel, or Railway.

An exe.dev VM is a good VPS for it, with two things done for you. HTTPS is exe.dev's job, so there are no certificates or open ports to manage. And the dashboard on port 8000 is reachable only by you, through your exe.dev login, so nobody on the internet can reach Coolify's login page, API, or terminal. That matters for software that runs commands as root on its host: Coolify has shipped serious security fixes in 2026, and its advisories recommend keeping the dashboard off the public internet.

Coolify's production environment listing a PostgreSQL database, a Node.js app from Git, an nginx image, and a static site, all running, with their exe.xyz addresses
Four resources on one VM: an app built from Git, a static site, an image on its own port, and PostgreSQL.

What you get#

  • Coolify 4.7 running on Docker, with its dashboard at https://my-coolify.exe.xyz:8000/ behind your exe.dev login.
  • Traefik on port 80, which https://my-coolify.exe.xyz/ reaches after share port, so apps get HTTPS from exe.dev.
  • Docker and SSH starting at boot, so Coolify and its apps come back after a reboot.
  • SSH limited to keys, for the root login Coolify uses to manage this VM.
What's running, and where
Private https://my-coolify.exe.xyz:8000/ The Coolify dashboard, API, and MCP endpoint
Private https://my-coolify.exe.xyz/ Your apps through Traefik, after share port my-coolify 80; public with share set-public
Private https://my-coolify.exe.xyz:3005/ Any app port you map from 3000 to 9999 (3005 in the examples)
my-coolify.exe.xyz exe.dev VM
Coolify 4.7 the dashboard, API, and MCP server, in Docker, installed by Coolify's script :8000/data/coolify
Realtime and terminal Coolify's websocket servers for live logs and the browser terminal :6001
PostgreSQL 15 and Redis 7 Coolify's own database and queue (coolify-db, coolify-redis) /data/coolify
Traefik 3 coolify-proxy, routes each app by host name and path :80
Your apps containers that Coolify builds from Git or pulls from a registry
OpenSSH Coolify manages this VM over SSH to root@localhost with its own key; logins with passwords stay off

Deploy with Shelley#

Click Deploy and Shelley will set up Coolify on a new VM, then check that it works. No config-file wrangling required.

Prefer a terminal?
curl -fsSL \
  https://exe.dev/deploy/coolify/prompt.txt \
  | ssh exe.dev new --prompt=/dev/stdin

When it's done, run this on your computer (only you can):

ssh exe.dev share port my-coolify 80
What Shelley is told
Set up Coolify on this VM by following the exe.dev recipe at https://exe.dev/deploy/coolify.md?via=deploy from top to bottom.

The recipe's example VM name is my-coolify. This VM's name is the output of `hostname`: use it wherever the recipe writes my-coolify. Skip the step that creates the VM; you are on it.

You are done when all of these are true. Check each one yourself:
- Coolify 4.7 running on Docker, with its dashboard at https://my-coolify.exe.xyz:8000/ behind your exe.dev login.
- Traefik on port 80, which `https://my-coolify.exe.xyz/` reaches after `share port`, so apps get HTTPS from exe.dev.
- Docker and SSH starting at boot, so Coolify and its apps come back after a reboot.
- SSH limited to keys, for the root login Coolify uses to manage this VM.

Run only "Set up the VM by hand" in "Install Coolify", skipping
"Create a VM". Use exactly the Coolify version it pins. Do not create the
root account, choose a server in onboarding, or change Coolify's
settings: the owner does that in the dashboard, which must be done
within 10 minutes of install (say so, and that `sudo docker restart coolify`
restarts the clock). Don't share any port or make anything public;
`share port my-coolify 80` is the owner's step.
Verify: `systemctl is-active ssh docker` prints active twice;
`sudo docker ps` shows coolify, coolify-db, and coolify-redis running
(coolify-proxy follows within a minute); `curl -sI
http://localhost:8000/` answers 302 to
/register (or /login). Finish with the dashboard URL
https://<vm>.exe.xyz:8000/, the share command with this VM's name, and
the reminder to register within 10 minutes.

Finish with the URLs I should open and these commands, which only I can run, from my own computer (with this VM's name in them):
  ssh exe.dev share port my-coolify 80

Also at /deploy/coolify/prompt.txt. The recipe it follows is /deploy/coolify.md.

Sign in and finish onboarding#

Open https://my-coolify.exe.xyz:8000/ within 10 minutes of the install (Coolify closes registration after that; sudo docker restart coolify on the VM gives you another 10). Sign in to exe.dev if asked. Then:

  1. Register the root user: name, email, and a password with upper- and lowercase letters, a number, and a symbol. Registration closes once this account exists.
  2. On Welcome, select Continue.
  3. Choose This machine. Coolify connects to the VM over SSH and validates it.
  4. Create your first project.

You now have the dashboard with the server localhost and a project with a production environment.

Send web traffic to Coolify#

Coolify's Traefik listens on port 80; exe.dev's proxy sends https://my-coolify.exe.xyz/ to port 8000 unless you tell it otherwise. On your computer:

ssh exe.dev share port my-coolify 80

https://my-coolify.exe.xyz/ now shows Traefik's "no available server" page until you deploy an app there, still private to you. The dashboard stays at :8000. See the HTTPS proxy.

Deploy your first app#

In your project, select New Resource, then Public Git Repository, and paste a repository URL. To try one, use Coolify's Node.js example:

https://github.com/coollabsio/coolify-examples/tree/main/javascript/runtimes/nodejs

Select Check Repository, keep the Railpack build pack and Port 3000, and select Continue.

One thing to change before the first deploy. Coolify gives the app a generated http://<id>.<ip>.sslip.io domain, which can't reach an exe.dev VM. On the app's Domains page, replace it with:

http://my-coolify.exe.xyz

Select Save, then Deploy. The build log streams live; ours finished in under a minute. Open https://my-coolify.exe.xyz/:

{"hello":"from nodejs #2"}

Warning

Always write http:// in Coolify's domain fields; the Add domain dialog starts at https. exe.dev already serves the address over HTTPS and passes plain HTTP to Traefik. An https:// domain makes Traefik redirect to HTTPS, which arrives as HTTP again: a redirect loop.

Coolify's Add domain dialog with protocol http, domain my-coolify.exe.xyz, and path /docs
Protocol http, the VM's host name, and an optional path.

The other sources work the same way: Dockerfile, Docker Image, Docker Compose, Private Git Repository (with Deploy Key), and the one-click Services catalog. Databases (PostgreSQL, MySQL, MariaDB, Redis, MongoDB, ClickHouse, and more) start from New Resource too; other apps reach them on Coolify's Docker network by the internal URL the database page shows.

Give each app an address#

One VM, many apps. Traefik tells them apart by host name and path, so pick what suits each app:

  • A path on the VM's name: http://my-coolify.exe.xyz/docs. Coolify strips the path prefix before it reaches the app, unless you change Advanced > Proxy > Path prefixes. Apps that build their own absolute links usually want their own host name instead.
  • Your own domain: point a CNAME at my-coolify.exe.xyz, register it with exe.dev (on your computer, ssh exe.dev domain add my-coolify app.example.com), and add http://app.example.com to the app in Coolify. exe.dev gets the certificate. See custom domains.
  • A port of its own, for internal tools: under General > Edit Networking, set Port mappings to 3005:80 (VM port 3005, container port 80) and leave the domain empty. https://my-coolify.exe.xyz:3005/ reaches it, and like every port from 3000 to 9999 it stays private to you.

Open apps to the world#

Everything above is private: exe.dev asks visitors to sign in first. To let anyone open the apps on https://my-coolify.exe.xyz/, on your computer:

ssh exe.dev share set-public my-coolify

This opens only the shared port (80, Traefik). The dashboard on 8000 and app ports such as 3005 stay private. To let teammates into the dashboard instead, share the VM with them (sharing); each still needs a Coolify account, which you invite under Team > Members.

Deploy on every push#

Coolify's GitHub App and webhooks need GitHub to reach the dashboard, which is private here. A GitHub Actions step can still deploy: it calls Coolify's API through exe.dev with two tokens.

  1. In Coolify, open Settings > Advanced and set API access to Enabled (it's off by default).

  2. Under Keys & Tokens > API Tokens, create a token with the deploy permission.

  3. On your computer, create an exe.dev token for this VM:

    ssh exe.dev ssh-key generate-api-key --vm=my-coolify --label=coolify-deploy
    
  4. Save both as repository secrets, EXE_TOKEN and COOLIFY_TOKEN, and copy the app's UUID from its URL in the dashboard (.../application/<uuid>).

Then add a step to a workflow that runs on push:

- name: Deploy with Coolify
  run: |
    curl -fsS -X POST "https://my-coolify.exe.xyz:8000/api/v1/deploy?uuid=APP_UUID" \
      -H "X-Exedev-Authorization: Bearer ${{ secrets.EXE_TOKEN }}" \
      -H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}"

exe.dev checks the first header, Coolify the second. The answer lists the queued deployment. See HTTPS tokens for VMs.

Let an agent drive Coolify#

Coolify has an MCP server, off by default. As the root user, open Settings > Advanced and set MCP server to Enabled, then create an API token with the permissions the agent should have (read to look, deploy to redeploy). On the VM, Claude Code reaches it on localhost and uses the LLM integration, so no API key:

claude mcp add --transport http coolify http://localhost:8000/mcp \
  --header "Authorization: Bearer <coolify-token>"
ANTHROPIC_API_KEY=implicit ANTHROPIC_BASE_URL=https://llm.int.exe.xyz \
  claude -p 'List my Coolify applications with status and domains.' \
  --allowedTools 'mcp__coolify__*'

It answers with a table of your apps. From your computer, use https://my-coolify.exe.xyz:8000/mcp and add the exe.dev token as a second header, X-Exedev-Authorization: Bearer <exe-token>.

Back up and restore#

Coolify backs up two different things, and you want both:

  • Your databases. On each database's Backups tab, add a scheduled backup (for example 0 3 * * *). Kept on the VM by default; to keep a copy elsewhere, add an S3 bucket under S3 Storages and tick Save to S3. Any S3 service with a public endpoint works. Coolify refuses private addresses (a Tailscale peer, another VM on your network) until you list them under Settings > Advanced > Allowed internal targets.
  • Coolify itself, its projects, settings, and secrets. Under Settings > Backup, select Configure backup; that schedules a daily backup of Coolify's database, which can go to S3 too.

Coolify encrypts the secrets in that database with APP_KEY, which no backup includes. Save it in your password manager now. On the VM:

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

For a copy on your computer without S3, dump the database on the VM and fetch it:

sudo docker exec coolify-db pg_dump --format=custom --no-acl --no-owner \
  --username=coolify coolify > ~/coolify-db.dmp
scp my-coolify.exe.xyz:coolify-db.dmp .

Restoring onto a fresh install (same Coolify version, then the saved APP_KEY and the dump) follows Coolify's restore guide. App files in Docker volumes are not in either backup; for a copy of the whole VM, see VM backups.

Install Coolify

Create a VM#

Pick any free VM name; the commands use my-coolify. On your computer:

ssh exe.dev new --name=my-coolify
ssh my-coolify.exe.xyz

The default VM (2 CPUs, 25 GB disk) runs Coolify and a few small apps. Builds and images add up; check df -h / now and then, and grow the disk as in the FAQ when it fills.

Set up the VM by hand#

Coolify manages its own server over SSH as root, so the VM needs an SSH server, which exeuntu ships turned off (you reach the VM through exe.dev's SSH, not this one). On the VM, turn it on for keys only, and start Docker at boot:

sudo systemctl enable --now docker.service
sudo tee /etc/ssh/sshd_config.d/10-coolify.conf >/dev/null <<'EOF'
PermitRootLogin prohibit-password
PasswordAuthentication no
KbdInteractiveAuthentication no
EOF
sudo ssh-keygen -A
sudo systemctl unmask ssh.service ssh.socket
sudo systemctl enable --now ssh.socket ssh.service
systemctl is-active ssh docker

Both lines say active. Nothing outside the VM reaches this SSH server: exe.dev forwards only HTTP ports.

Now run Coolify's installer, pinned to the version this page was tested with (see releases for newer ones):

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

It takes about three minutes, two of them at "Checking OpenSSH server configuration", where it waits for snap, which exeuntu doesn't run. On the default 25 GB disk it warns that it wants 30 GB; that's fine to start with. It writes /etc/docker/daemon.json (log rotation and address pools) and restarts Docker, creates the SSH key Coolify uses for root@localhost, and starts the containers. Check:

sudo docker ps --format '{{.Names}}  {{.Status}}'
curl -sI http://localhost:8000/ | head -3

You should see coolify, coolify-db, and coolify-redis up (Coolify starts coolify-proxy and coolify-sentinel within a minute), and a 302 to /register. Everything Coolify keeps is under /data/coolify; its settings and APP_KEY are in /data/coolify/source/.env.

Then register within 10 minutes.

Update Coolify

Coolify updates itself: Settings > Updates has Automatic updates on, checking daily, and backs up its database first once you've configured Settings > Backup. Leave it on; Coolify's security fixes come out often. To update by hand, use Upgrade now on the same page, or on the VM (with the version you want):

curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh | sudo bash -s 4.7.6

Don't run install.sh again on an existing install; it resets permissions under /data/coolify.

Dokploy instead#

Dokploy does the same job with a smaller dashboard, on Docker Swarm (Apache-2.0, apart from a few features in its proprietary directory). It needs ports 80, 443, and 3000 to itself, so give it its own VM rather than sharing one with Coolify. On a fresh VM:

sudo systemctl enable --now docker.service
curl -sSL https://dokploy.com/install.sh | sudo sh

It took about a minute on our test VM. Open https://my-dokploy.exe.xyz:3000/ (private, like Coolify's dashboard), create the admin account, and run ssh exe.dev share port my-dokploy 80 on your computer. The same rule applies: when you add a domain, turn HTTPS off and pick no certificate, since exe.dev handles that.

Troubleshooting#

The app's address loops with "too many redirects". Its domain in Coolify starts with https://. Change it to http://, then Save and Redeploy.

"no available server" or Coolify's 503 page. Traefik has no route for that host name: the app's domain doesn't match the address exactly (including www. and the path), the app isn't running, or its Ports exposes (under General > Edit Networking) is wrong. Check its Deployment Logs and Runtime Logs.

The app has an sslip.io address. That's Coolify's guess from the VM's public IP, which doesn't route to an exe.dev VM. Replace it with http://my-coolify.exe.xyz or your own domain.

The server shows as unreachable. Coolify lost SSH to the VM. On the VM, systemctl status ssh.socket should be active, and sudo journalctl -u ssh --since -1h shows why logins failed. Then select Revalidate Connection on the server's page.

The registration page is gone before you registered. The 10 minutes ran out. On the VM, sudo docker restart coolify, then open the dashboard again.

Something else. Coolify's own log: sudo docker logs --tail 100 coolify. The proxy's: sudo docker logs --tail 100 coolify-proxy.

Frequently asked questions#

Is Coolify free?

Self-hosted Coolify is free and open source (Apache-2.0), with every feature included. You pay for the VM on your exe.dev plan. Coolify Cloud is the makers' paid hosted dashboard; you don't need it here.

How much memory and disk does Coolify need?

Coolify asks for 2 CPUs, 2 GB of memory, and 10 GB of disk. On our test VM its own containers used about 1 GB of memory at rest, and the first app builds took a few GB of disk. Builds run on the same VM, so give it room: ssh exe.dev resize my-coolify --disk=50GB, then sudo resize2fs "$(findmnt -no SOURCE /)" on the VM.

Can I use Coolify's Let's Encrypt certificates?

You don't need them. exe.dev terminates HTTPS for my-coolify.exe.xyz and your custom domains and hands Traefik plain HTTP on port 80. Give every domain in Coolify an http:// address; an https:// one makes Traefik redirect forever.

Can Coolify deploy to other servers too?

Coolify can manage more servers over SSH as root, which is how it manages this VM. This recipe was tested with one VM; adding other exe.dev VMs as Coolify servers was not tested.

Do pushes to GitHub deploy automatically?

Coolify's GitHub App and push webhooks need GitHub to reach the dashboard, which stays private here. Instead, call Coolify's deploy API from a GitHub Actions step with two tokens, as shown in Deploy on every push.

Should I use Coolify or Dokploy?

Both run on an exe.dev VM. Coolify has more one-click services and build options; Dokploy is lighter and uses Docker Swarm. Try the one whose dashboard you like; see Dokploy instead.

When is Coolify overkill?

For one or two apps you already have a compose.yaml for, run Docker Compose directly (guide). Coolify earns its 1 GB when you deploy many apps, want builds from Git without writing Dockerfiles, or want one-click databases with scheduled backups.

Published Nov 25, 2026 · Updated Nov 22, 2026 · tested end to end Nov 22, 2026 · Markdown · manifest.json · Something wrong? Tell us