π Open Source Deployment Platforms (Self-Hosted) β
Last Updated: January 28, 2026
Goal: Deploy FlexGate without Docker using open-source platforms
π― Top Open Source Alternatives to Render β
Option 1: Coolify β HIGHLY RECOMMENDED β
License: Apache 2.0 (Open Source)
Best for: Self-hosting with Docker-like simplicity
What is Coolify? β
- π₯ Open-source Heroku/Netlify/Vercel alternative
- β One-click deployment from Git
- β Built-in SSL certificates (Let's Encrypt)
- β Automatic deployments on push
- β Beautiful web UI
- β Database management (Redis, PostgreSQL, MongoDB)
- β Preview deployments for PRs
- β Zero-downtime deployments
Architecture: β
ββββββββββββββββββββββββββββββββββββββββββββ
β Coolify Dashboard (Port 8000) β
β ββββββββββββββββββββββββββββββββββββββ β
β β Git Integration (GitHub/GitLab) β β
β ββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββ β
β β FlexGate API + Admin UI β β
β β Auto-deployed on push β β
β ββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββ β
β β Redis + Other Services β β
β ββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββSetup (5 minutes): β
1. Install Coolify on your server:
# On a fresh Ubuntu/Debian server (1GB RAM minimum)
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
# Or via Docker
docker run -d \
--name coolify \
-p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v coolify-data:/data \
coollabsio/coolify:latest2. Access dashboard:
Open: http://your-server-ip:8000
Create admin account3. Deploy FlexGate:
1. Click "New Resource" β "Public Repository"
2. Paste: https://github.com/tapas100/flexgate-proxy
3. Select branch: main
4. Build Command: npm ci && npm run build
5. Start Command: npm start
6. Port: 3000
7. Click "Deploy"4. Add Admin UI:
1. Click "New Resource" β "Static Site"
2. Repository: (same)
3. Build Command: cd admin-ui && npm ci && npm run build
4. Publish Directory: admin-ui/build
5. Click "Deploy"Cost:
- Self-hosted: $5-12/mo (VPS: Hetzner, DigitalOcean)
- Coolify Cloud: Coming soon (managed option)
Documentation: https://coolify.io/docs
Option 2: CapRover β EXCELLENT β
License: Apache 2.0 (Open Source)
Best for: Simple PaaS on your own server
What is CapRover? β
- β Self-hosted Heroku alternative
- β One-click apps (PostgreSQL, Redis, etc.)
- β Auto SSL (Let's Encrypt)
- β CLI deployment
- β Web UI dashboard
- β No Docker knowledge needed
Setup: β
1. Install CapRover:
# On your server (Ubuntu/Debian)
docker run -p 80:80 -p 443:443 -p 3000:3000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /captain:/captain \
caprover/caprover2. Setup domain:
# Install CLI
npm install -g caprover
# Setup
caprover serversetup3. Deploy FlexGate:
# In your project root
cat > captain-definition << 'EOF'
{
"schemaVersion": 2,
"templateId": "node/20",
"dockerfilePath": null,
"imageName": null
}
EOF
# Deploy
caprover deployCost: $5-10/mo (VPS hosting)
Documentation: https://caprover.com/docs
Option 3: Dokku β CLASSIC β
License: MIT (Open Source)
Best for: Heroku-like experience, self-hosted
What is Dokku? β
- π³ Docker-powered mini-Heroku
- β Git push to deploy
- β Buildpacks (no Dockerfile needed)
- β Plugin ecosystem
- β CLI-focused (minimal UI)
Setup: β
1. Install Dokku:
# On Ubuntu 22.04+
wget -NP . https://dokku.com/install/v0.32.0/bootstrap.sh
sudo DOKKU_TAG=v0.32.0 bash bootstrap.sh2. Create app:
# On server
dokku apps:create flexgate-api
dokku apps:create flexgate-admin
# Set buildpack
dokku buildpacks:set flexgate-api https://github.com/heroku/heroku-buildpack-nodejs3. Deploy:
# On local machine
git remote add dokku dokku@your-server:flexgate-api
git push dokku mainCost: $5-10/mo (VPS)
Documentation: https://dokku.com/docs
Option 4: Easypanel β MODERN β
License: Open Source
Best for: Visual deployment management
What is Easypanel? β
- β Modern UI (similar to Vercel/Netlify)
- β Built on Docker
- β Template marketplace
- β Easy database management
- β GitHub integration
Setup: β
1. Install:
curl -sSL https://get.easypanel.io | sh2. Access:
Open: http://your-server-ip:30003. Deploy:
1. Connect GitHub
2. Select flexgate-proxy repo
3. Auto-detects Node.js
4. Click DeployCost: Free (self-hosted) or $20/mo (managed)
Documentation: https://easypanel.io/docs
Option 5: Piku β MINIMALIST β
License: MIT (Open Source)
Best for: Simple, Heroku-like, single file
What is Piku? β
- π― Minimal (single Python file!)
- β Git push to deploy
- β No Docker required
- β Runs on Raspberry Pi
- β Super lightweight
Setup: β
1. Install:
curl https://piku.github.io/get | sh2. Deploy:
git remote add piku piku@your-server:flexgate
git push piku mainCost: $5/mo (tiny VPS works)
Documentation: https://piku.github.io
Option 6: Kamal (by 37signals/Basecamp) β NEW β
License: MIT (Open Source)
Best for: Zero-downtime deployments
What is Kamal? β
- π Created by Ruby on Rails team
- β Deploy to any server
- β Zero-downtime deployments
- β Secrets management
- β Health checks built-in
Setup: β
1. Install:
gem install kamal2. Initialize:
kamal init3. Deploy:
kamal deployDocumentation: https://kamal-deploy.org
Option 7: Porter β KUBERNETES β
License: MIT (Open Source)
Best for: If you need Kubernetes
What is Porter? β
- βΈοΈ Kubernetes made simple
- β Heroku-like experience on K8s
- β Auto-scaling
- β Multi-cloud (AWS, GCP, Azure, DO)
Cost: Self-hosted free, or Porter Cloud
Documentation: https://porter.run/docs
π Comparison Table β
| Platform | License | Complexity | UI | Database Support | Best For |
|---|---|---|---|---|---|
| Coolify | Apache 2.0 | Low | βββββ | β Built-in | Modern PaaS |
| CapRover | Apache 2.0 | Low | ββββ | β One-click | Simple hosting |
| Dokku | MIT | Medium | ββ | β Plugins | Heroku clone |
| Easypanel | Open | Low | βββββ | β Built-in | Visual UI |
| Piku | MIT | Low | β | β οΈ Manual | Minimal |
| Kamal | MIT | Medium | β | β οΈ Manual | Zero-downtime |
| Porter | MIT | High | βββ | β K8s | Enterprise |
π― Recommended for FlexGate β
Best Overall: Coolify π β
Why?
- β Beautiful modern UI
- β Git push auto-deploy
- β Built-in Redis, PostgreSQL
- β Free SSL certificates
- β Active development
- β Great documentation
- β Preview deployments
- β Easy backup/restore
Setup Time: 10 minutes
Cost: $6/mo (Hetzner CX11) or $12/mo (DigitalOcean)
π Quick Start with Coolify (Recommended) β
Step 1: Get a Server β
Providers (cheapest to most expensive):
Hetzner Cloud: β¬4.15/mo (CX11 - 2GB RAM)
Vultr: $6/mo (1GB RAM)
DigitalOcean: $12/mo (2GB RAM)
Linode: $12/mo (2GB RAM)Step 2: Install Coolify β
# SSH into your server
ssh root@your-server-ip
# Install Coolify (one command!)
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
# Wait 2-3 minutes for installationStep 3: Access Dashboard β
# Open in browser
http://your-server-ip:8000
# Create admin account
# Username: admin
# Password: (choose strong password)Step 4: Deploy FlexGate β
In Coolify Dashboard:
1. Click "+" β "New Resource" β "Public Repository"
2. Git Settings:
- Repository: https://github.com/tapas100/flexgate-proxy
- Branch: main
- Auto Deploy: ON
3. Build Settings:
- Type: NodeJS
- Build Command: npm ci && npm run build
- Start Command: npm start
- Port: 3000
4. Environment Variables:
- NODE_ENV=production
- PORT=3000
- JWT_SECRET=<auto-generated>
5. Click "Deploy"Step 5: Add Redis β
1. Click "+" β "New Database" β "Redis"
2. Name: flexgate-redis
3. Version: 7
4. Click "Deploy"
5. Copy connection string
6. Add to FlexGate env vars: REDIS_URLStep 6: Deploy Admin UI β
1. Click "+" β "New Resource" β "Public Repository"
2. Same repo: https://github.com/tapas100/flexgate-proxy
3. Build Settings:
- Type: Static Site
- Build Command: cd admin-ui && npm ci && npm run build
- Publish Directory: admin-ui/build
- Base Directory: admin-ui
4. Environment Variables:
- REACT_APP_API_URL=<flexgate-api-url>
5. Click "Deploy"Step 7: Setup Custom Domain (Optional) β
1. In Coolify Dashboard β Your App
2. Click "Domains"
3. Add: api.flexgate.io
4. SSL: Auto (Let's Encrypt)
5. Point your DNS:
- Type: A
- Name: api
- Value: your-server-ipπ° Cost Comparison β
Open Source (Self-Hosted): β
Server (Hetzner): β¬4.15/mo
Domain: $12/year = $1/mo
SSL: Free (Let's Encrypt)
βββββββββββββββββββββββββ
Total: ~$6/moRender (Managed): β
Web Service: $7/mo
Redis: $7/mo
Static Site: Free
βββββββββββββββββββββββββ
Total: $14/moDigitalOcean App Platform (Managed): β
Basic App: $12/mo
Redis: $15/mo
βββββββββββββββββββββββββ
Total: $27/moSavings with self-hosting: $8-21/mo π°
π§ Required Changes for Coolify β
Update package.json: β
{
"engines": {
"node": "20.x",
"npm": "10.x"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"start": "node ./dist/bin/www",
"deploy": "echo 'Deploy via Coolify dashboard'"
}
}Add .coolify/deploy.sh (optional): β
#!/bin/bash
set -e
echo "π Building FlexGate..."
npm ci
npm run build
echo "β
Build complete!"π Next Steps β
I recommend Coolify because:
- β Open source (Apache 2.0)
- β Modern UI (better than Render)
- β Self-hosted (you own your data)
- β Cost-effective ($6/mo vs $27/mo)
- β Easy to use (no Docker knowledge needed)
- β Active community (growing fast)
Want me to:
- Create Coolify deployment configuration?
- Set up a Hetzner server for you?
- Show alternative like CapRover or Dokku?
Let me know which platform you prefer! π