Skip to content
coolify-deployment logo

Coolify Self-Hosted PaaS Deployment

coolify-deployment

Deploy Coolify self-hosted PaaS for application hosting. Covers VM provisioning, installation, GitHub integration, and application deployment with auto-SSL.

SKILL.md

Full skill instructions

Coolify Self-Hosted PaaS Deployment

Quick Start

Install Coolify on VM

ssh -i <key-file> <user>@<instance-ip>
curl -fsSL https://cdn.coollabs.io/​coolify/​install.sh | sudo bash
# Access: http://<instance-ip>:8000

Deploy Application

  1. Access Coolify UI at http://<instance-ip>:8000
  2. Create admin account (first visitor gets admin)
  3. Add GitHub source → Create project → Deploy from repo
  4. Access app at http://<container-id>.<instance-ip>.sslip.io

Server Requirements

ResourceMinimumRecommended
CPU2 vCPU4 vCPU
RAM2GB4GB
Storage30GB50GB
OSUbuntu 20.04/​22.04/​24.04 LTSUbuntu 24.04 LTS

Required Ports:

  • TCP 22 (SSH)
  • TCP 80 (HTTP/​Let's Encrypt)
  • TCP 443 (HTTPS)
  • TCP 8000 (Coolify UI)

Cloud VM Deployment

1. Provision Infrastructure

# Create security group with required ports
# - TCP 22 (SSH)
# - TCP 80 (HTTP)
# - TCP 443 (HTTPS)
# - TCP 8000 (Coolify UI)

# Launch instance with:
# - 2+ vCPU, 2GB+ RAM
# - 30GB+ root volume
# - Ubuntu LTS
# - Public IP
# - SSH key pair

2. Install Coolify

# Set key permissions
chmod 400 /​path/​to/​key.pem

# Connect and install
ssh -o StrictHostKeyChecking=no -i /​path/​to/​key.pem <user>@<instance-ip>
curl -fsSL https://cdn.coollabs.io/​coolify/​install.sh | sudo bash

3. Initial Setup

  1. Open browser: http://<instance-ip>:8000
  2. IMPORTANT: Create admin account immediately
  3. Complete setup wizard

4. Verify Installation

ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "sudo docker ps --format 'table {{.Names}}\t{{.Status}}' | grep coolify"

Application Deployment

Supported Build Methods

MethodUse Case
DockerfileCustom container builds
NixpacksAuto-detected language builds
Docker ComposeMulti-container apps
StaticHTML/​JS/​CSS sites

Deploy from GitHub

  1. Add Source: Sources → Add New → GitHub App
  2. Create Project: Projects → Add New Project
  3. Add Resource: Add New Resource → Public/​Private Repository
  4. Configure:
    • Repository URL
    • Branch
    • Build pack (Dockerfile/​Nixpacks)
    • Port to expose
  5. Deploy: Click Deploy button

Sample Dockerfile Application

app/
├── main.py          # Application code
├── requirements.txt # Dependencies
└── Dockerfile       # Container definition

Dockerfile:

FROM python:3.12-slim
WORKDIR /​app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]

Domain Configuration

Auto-generated (sslip.io):

  • Format: <container-id>.<public-ip>.sslip.io
  • Works immediately, no DNS required

Custom Domain:

  1. Add DNS A record → EC2 public IP
  2. Update domain in Coolify resource settings
  3. Enable SSL (Let's Encrypt auto-configured)

Verification

Check Container Status

ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "sudo docker ps --format 'table {{.Names}}\t{{.Ports}}\t{{.Status}}'"

Test Application

# Get app URL from Coolify UI
APP_URL="http://<container-id>.<public-ip>.sslip.io"

curl -s $APP_URL/
curl -s $APP_URL/​health

Check Logs

# Application logs
ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "sudo docker logs <container-name> --tail 50"

# Coolify logs
ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "sudo docker logs coolify --tail 50"

Configuration Reference

Coolify Containers

ContainerPurposePort
coolifyMain application8000
coolify-proxyTraefik reverse proxy80, 443
coolify-dbPostgreSQL database5432
coolify-redisRedis cache6379
coolify-realtimeWebSocket server6001-6002

Important Paths

PathPurpose
/​data/​coolify/​source/​.envCoolify configuration
/​data/​coolify/​proxy/​dynamic/Traefik dynamic config
/​data/​coolify/​applications/Application data
/​data/​coolify/​databases/Database volumes

Environment Variables (Installation)

VariablePurposeExample
ROOT_USERNAMEAdmin usernameadmin
ROOT_USER_EMAILAdmin email[email protected]
ROOT_USER_PASSWORDAdmin passwordSecurePass123
AUTOUPDATEAuto-update toggletrue/false

Production Checklist

  • Create admin account immediately after install
  • Backup /​data/​coolify/​source/​.env to secure location
  • Configure firewall/​security group rules
  • Set up custom domain with SSL
  • Restrict SSH access to specific IPs
  • Configure monitoring/​alerts
  • Test deployment rollback procedure
  • Document access credentials securely

Troubleshooting

IssueSolution
404 on public IPAccess via sslip.io domain, not raw IP
Cannot access Coolify UICheck security group allows port 8000
Deployment failsCheck Coolify logs and Dockerfile syntax
SSL certificate failsEnsure port 80 open, DNS configured
Container not startingCheck container logs for errors
Out of disk spacePrune Docker: docker system prune -a
Coolify unresponsiveRestart: docker restart coolify

Update Coolify

ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "cd /​data/​coolify/​source && sudo bash upgrade.sh"

Cleanup

# Stop all containers
ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "cd /​data/​coolify/​source && sudo docker compose down"

# Remove Coolify data (destructive)
ssh -i /​path/​to/​key.pem <user>@<instance-ip> \
  "sudo rm -rf /​data/​coolify"

# Terminate cloud instance

References

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View