将 GitHub Actions 用作 PaaS 的控制平面实验
An experiment to use GitHub Actions as a control plane for a PaaS

原始链接: https://towlion.github.io

## Towlion:自托管微型PaaS Towlion 将一台 Debian 服务器转化为多应用部署平台,利用 **GitHub 作为唯一的控制平面**。它通过消除仪表盘或复杂 API 的需求来简化部署——只需 **推送到部署**,并使用拉取请求来创建预览环境。 Towlion 提供完整的堆栈,包括 **Docker、Caddy(用于自动 TLS)、PostgreSQL、Redis 以及内置的可观察性套件(Loki、Promtail、Grafana)**,所有这些都通过单个引导脚本安装。每个应用都获得自己的子域名、数据库和隔离容器。 **自托管非常简单:** 分叉一个应用仓库,配置四个密钥,然后推送。它专为生产环境设计,具有每日备份、安全更新和资源限制等功能。Towlion 利用熟悉且可靠的技术,如 **FastAPI、Next.js 和 GitHub Actions**,提供精简高效的部署体验,并为传统的 PaaS 解决方案提供了一种经济高效的替代方案。

黑客新闻 新的 | 过去的 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 一个实验,使用 GitHub Actions 作为 PaaS 的控制平面 (towlion.github.io) 3 分,baijum 发表于 1 小时前 | 隐藏 | 过去的 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文
Towlion — Self-Hosted Micro-PaaS

systems online

A self-hosted platform that turns a single Debian server into a multi-app deployment machine. GitHub is your entire control plane.

deploy@towlion

# bootstrap your server $ sudo bash bootstrap-server.sh installing docker, caddy, postgres, redis, grafana... ✓ platform ready   # create an app from the template $ gh repo create my-app --template towlion/app-template ✓ created towlion/my-app   # push to deploy $ git push origin main ✓ deployed to https://my-app.example.com

01 / Capabilities

Everything you need,
nothing you don't

A complete deployment platform that lives entirely in GitHub. No dashboards to maintain, no APIs to learn.

GitHub is the control plane

Push to deploy. Open a PR to get a preview environment. Close it to clean up. GitHub Actions handles everything.

Multi-app hosting

Run multiple applications on a single server. Each gets its own subdomain, database, storage bucket, and isolated containers.

Automatic TLS

Caddy handles HTTPS automatically. Every app and preview environment gets a valid certificate with zero configuration.

Built-in observability

Centralized logging with Loki and Promtail. Grafana dashboards out of the box. Health alerts via GitHub Issues.

Fork to self-host

Fork any app repo, configure 4 secrets, push. You're running your own instance. That's the entire self-hosting guide.

Production ready

Daily backups, automated security updates, resource limits, credential isolation, and firewall rules out of the box.

02 / Workflow

Three steps to production

Zero to deployed in minutes, not days.

1

Bootstrap

Run one script on a fresh Debian server. It installs Docker, PostgreSQL, Redis, Caddy, and the full observability stack.

2

Create

Generate a new app from the template. FastAPI, database migrations, Docker config, and CI/CD workflows are pre-configured.

3

Push

Set 4 GitHub secrets and push to main. GitHub Actions builds, deploys, and configures your app automatically.

YOUR SERVER Caddy reverse proxy + auto TLS APPS App 1 App 2 App 3 DATA PostgreSQL Redis MinIO OBS Loki Promtail Grafana

03 / Stack

Boring technology,
done right

Built on battle-tested tools you already know.

Docker

GitHub Actions

Caddy

PostgreSQL

Redis

FastAPI

Next.js

MinIO (S3)

Grafana

Loki

Alembic

Debian 12

04 / Deploy

Ready to ship?

Stop paying for PaaS. Own your infrastructure. Deploy with confidence.

联系我们 contact @ memedata.com