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:
Then install Docker Compose:
Check versions to confirm installation:
๐ Step 2: Clone Coolify Repo
Create a directory and clone Coolify:
⚙️ Step 3: Configure Environment
Coolify comes with a .env file you can customize:
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:
This will download all necessary containers and launch the platform.
๐ Step 5: Access Coolify
-
Visit
http://your-server-ip:3000orhttps://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:
๐ง 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
Post a Comment