DockerHoster: Self-hosted alternative to Vercel with auto-deployments
说明与用途
DockerHoster 是 Vercel 的自托管替代方案,允许在每月 12 美元的单个 VPS 上托管 20 多个网站。它使用 Docker 和 nginx-proxy 通过 GitHub 推送实现自动部署,支持 serverless 平台不支持的数据库、cron 任务和长期运行的进程。
问题
High per-project hosting fees on platforms like Vercel and limitations of serverless architectures (lack of support for databases, cronjobs, and long-running processes).
结果
Successfully hosted 20+ websites on a single $12/month VPS with automated deployments, supporting various languages and frameworks (Next.js, Python, Rails, Go) and full Docker ecosystem access including databases and cronjobs.
工作流
- Set up a VPS (e.g., DigitalOcean droplet with 2GB RAM).
- Install DockerHoster using a one-command setup.
- Configure nginx-proxy to automatically route traffic to Docker containers based on VIRTUAL_HOST.
- Add a GitHub Actions workflow and docker-compose.yml to the project repository.
- Push code to GitHub to trigger automatic deployment.
- Use Cloudflare for DNS, SSL, DDoS protection, and WAF.
证据
Tested running 20+ sites on a 2GB RAM DigitalOcean droplet
host 20+ websites on a single $12/month VPS
- 记录日期: 2026-09-09T10:45:25.510Z