Coolify
Coolify turns your VPS into your own platform for apps, much like Heroku or Vercel. You point it at a git repository, and Coolify builds the app, starts it and gives it a domain with HTTPS. Coolify is open source and runs entirely on your own server.
This guide has been tested on a VPS Medium with Debian 13 and Coolify 4.7, with a certificate from Let's Encrypt and access over both IPv4 and IPv6.
What you need
- A new VPS with Debian 13, at least 2 cores and 2 GB RAM. VPS Medium is enough for a few small apps. Building a simple Node app took 1.5 GB RAM in our test. If you build larger apps or run several, choose VPS Bygg själv with 4 GB or more.
- At least 35 GB disk. Coolify warns if the file system is smaller than 30 GB, and with 30 GB chosen in the portal it becomes 29 GB. Apps and builds also take space.
- A domain that you can add DNS records for, for example in GetGeek DNS.
Step 1: Install Coolify
Log in to the server with the username from the portal, see Getting started, and become root:
All commands in steps 1–3 run as root. Install with Coolify's script:
The script installs Docker and starts Coolify. It takes a couple of minutes. It prints a
link to port 8000 and warns about PermitRootLogin. Do not open the link yet; steps 2
and 3 take care of that.
Step 2: Let Coolify log in to the server
Coolify manages the server by logging in as root over SSH from its own container. Our servers do not allow root logins, so allow them only from Coolify's own Docker network:
The file should contain one network, for example Match Address 10.0.1.0/24. Root
still cannot log in from the internet or from your private network.
Step 3: Close the dashboard to the internet
Coolify's dashboard listens on port 8000 for everyone, and whoever registers first
becomes the administrator. Make it listen only locally on the server:
After half a minute, check that the ports are only on 127.0.0.1:
The file docker-compose.custom.yml is kept when Coolify is updated.
Leave the root shell with exit.
Step 4: Create your account
Open an SSH tunnel from your computer, with the username and address from the portal:
Keep the connection open and go to http://localhost:8000 in your browser. Create your
administrator account. The password must contain upper and lower case letters, digits
and special characters.
Coolify only accepts the first account during the first ten minutes after it started.
If the time is up, run sudo docker restart coolify on the server and reload the page.
The server Coolify runs on is called localhost in Coolify. Check that Coolify can reach
it under Servers → localhost, see
Coolify's documentation.
Then make a copy of Coolify's keys. Without them Coolify cannot be restored from a backup. On the server:
Fetch the file to your computer, store it for example in your password manager, and remove it from the server:
Step 5: Point the domain at the server
Add an A record and an AAAA record for the app's name, for example
app.yourcompany.com, with the server's IPv4 and IPv6 address from the portal. If you
will run several apps you can add a wildcard instead, for example
*.apps.yourcompany.com.
Step 6: Deploy an app
Create a project in Coolify and add your app from a git repository. Coolify explains the steps in Deploy your first app.
Enter the domain with https://, for example https://app.yourcompany.com. Coolify then
gets a certificate from Let's Encrypt. This requires the DNS record from step 5 to
already point at the server.
In our test, Coolify's Node.js example app was running three minutes after we added it. The app came back up by itself after a restart of the server.
Good to know
- Private network: Docker hands out networks from
10.0.0.0/8, from the bottom:10.0.0.0/24,10.0.1.0/24and so on. Do not use10.0.x.xfor your private network. The examples there,10.10.0.0/24and VPS Cloud's10.240.x.0/24, do not collide. - Backups: the nightly backup of the server contains everything Coolify has, see
Backups and snapshots. Still keep the copy of
.envsomewhere else. - Rebuild in the portal deletes Coolify and all apps.
- Help with Coolify is in Coolify's documentation.