Self-Host Coolify

 

๐Ÿ› ️ How to Self-Host Coolify

Coolify runs as a Docker container and manages other containers, so all you need is Docker and Docker Compose. Here's how to get started:


Prerequisites

  • A Linux server (Ubuntu 20.04+ recommended)

  • A domain name (optional but recommended for HTTPS)

  • Docker and Docker Compose installed

  • SSH access to your server


๐Ÿงฐ Step 1: Install Docker & Docker Compose

On your Linux server, run:

bash
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh

Then install Docker Compose:

bash
sudo apt install docker-compose -y

Check versions to confirm installation:

bash
docker -v docker-compose -v

๐Ÿ“ Step 2: Clone Coolify Repo

Create a directory and clone Coolify:

bash
mkdir -p ~/coolify cd ~/coolify git clone https://github.com/coollabsio/coolify.git .

⚙️ Step 3: Configure Environment

Coolify comes with a .env file you can customize:

bash
cp .env.example .env nano .env

Edit settings like:

  • COOLIFY_HOSTNAME=your.domain.com (for SSL)

  • COOLIFY_APP_PORT=3000 (default port)

Save and exit.


๐Ÿš€ Step 4: Start Coolify

Run the Docker Compose setup:

bash
docker-compose up -d

This will download all necessary containers and launch the platform.


๐ŸŒ Step 5: Access Coolify

  • Visit http://your-server-ip:3000 or https://your.domain.com

  • Follow the onboarding steps (set up an admin account, etc.)

If you're using a custom domain, make sure your domain points to your server's IP (via A or CNAME record).


๐Ÿ”’ Step 6: (Optional) Set Up SSL with a Reverse Proxy

Coolify can handle SSL automatically if you give it a domain and enable it in the .env file. But for advanced setups, you can place it behind an NGINX reverse proxy or use tools like Caddy.


๐Ÿงผ Step 7: Keeping It Up-to-Date

Coolify has a built-in auto-updater, but you can also pull the latest version manually:

bash
cd ~/coolify git pull docker-compose pull docker-compose up -d

๐Ÿง  Tips

  • For best performance, use at least 2GB RAM and a dual-core CPU.

  • Avoid running on port 80/443 directly if you're hosting other services.

  • Add swap memory if you're using a low-spec VPS.

Comments

Popular posts from this blog

Vector database