
CapRover Has a Free Self-Hosted PaaS — Here's How to Use It
Heroku's free tier is gone. Railway has limits. CapRover turns any VPS into your own Heroku — free, open-source, with one-click app deployment. What Is CapRover? CapRover is a self-hosted Platform-as-a-Service. Install it on any $5/month VPS and get: automatic HTTPS, Docker deployment, one-click apps, and a beautiful dashboard. Setup (5 Minutes) # On your VPS (Ubuntu 20+) docker run -p 80:80 -p 443:443 -p 3000:3000 \ -e ACCEPTED_TERMS = true \ -v /var/run/docker.sock:/var/run/docker.sock \ -v captain-data:/captain \ caprover/caprover Then visit http://your-server:3000 and follow the setup wizard. Deploy Your App Option 1: CLI npm install -g caprover caprover deploy # Prompts for app name and uploads your code Option 2: GitHub Webhook Push to GitHub → CapRover auto-deploys. Set up in the dashboard. Option 3: Dockerfile FROM node:20-alpine WORKDIR /app COPY package*.json ./ RUN npm ci --production COPY . . EXPOSE 3000 CMD ["node", "server.js"] CapRover detects the Dockerfile and builds a
Continue reading on Dev.to DevOps
Opens in a new tab


