Coolify
Coolify is a self-hosted PaaS (like Heroku/Vercel) that you run on your own server. It handles Docker builds, TLS, and deployments from a web UI.
Prerequisites
Section titled “Prerequisites”- A server with Coolify installed (install guide)
- Your WCP repo on GitHub, GitLab, or Gitea
1. Create a New Resource
Section titled “1. Create a New Resource”- Open your Coolify dashboard
- Go to Projects → select or create a project
- Click + New Resource → Docker Based → Dockerfile
2. Connect Your Repository
Section titled “2. Connect Your Repository”- Select your Git provider (GitHub / GitLab / Gitea)
- Choose the
lucasmella-stack/WCPrepository - Branch:
main - Dockerfile path:
Dockerfile(at repo root)
3. Configure the Service
Section titled “3. Configure the Service”General Settings
Section titled “General Settings”| Setting | Value |
|---|---|
| Port | 8000 |
| Health Check Path | /health |
| Health Check Interval | 30 |
Environment Variables
Section titled “Environment Variables”Add these in the Environment Variables tab:
| Key | Value |
|---|---|
WCP_DB_PATH | /data/sync.db |
WCP_CONFIG_PATH | /data/config.json |
WCP_CORS_ORIGINS | https://dashboard.yourdomain.com |
Persistent Storage
Section titled “Persistent Storage”In the Storages tab, add a volume:
| Source | Destination |
|---|---|
wcp-data | /data |
Domain
Section titled “Domain”In the Domains tab, add your domain (e.g., wcp.yourdomain.com). Coolify will provision a Let’s Encrypt certificate automatically.
4. Deploy
Section titled “4. Deploy”Click Deploy. Coolify builds the Docker image and starts the container.
Monitor the build logs in the Coolify UI. Once the health check passes, your instance is live.
5. Deploy the Dashboard
Section titled “5. Deploy the Dashboard”Create a second resource:
- + New Resource → Docker Based → Static Site (or Dockerfile)
- Same repo, but set:
- Build command:
cd dashboard && npm ci && npm run build - Publish directory:
dashboard/dist
- Build command:
- Add env:
VITE_API_URL=https://wcp.yourdomain.com - Set domain:
dashboard.yourdomain.com - Deploy
Auto-Deploy
Section titled “Auto-Deploy”Enable Auto Deploy in the resource settings. Coolify will rebuild and deploy on every push to your configured branch.
Backups
Section titled “Backups”Coolify supports scheduled backups of volumes. Configure them in Settings → Backups to protect your SQLite database.