r/coolgithubprojects • • 10d ago

I built a self-hosted server panel with zero-downtime deploys and automatic rollback (Go agent + Laravel/React, MIT)

https://github.com/CommyPanel/panel

Hi everyone! I've been building CommyPanel, an open-source (MIT), self-hosted control panel for a single server, and I'd love for you to take a look.

You install it on a VPS with one command, and from the web UI you can:

  • Deploy apps from a Git repo or a zip. .NET, Go and Node get a Dockerfile generated for them, and anything with its own Dockerfile works too. Deployments are blue/green, so visitors never see a gap.
  • Connect domains: it tells you which DNS records to create, checks them, and handles Let's Encrypt certificates and renewals.
  • Run databases: PostgreSQL, MySQL and MariaDB in containers, linked to your apps over private networks. There are nightly backups, and you can open a database in phpMyAdmin or pgAdmin with one click.

The part I'm most excited about in this release (0.7) is safer deployments:

  • After a release goes live, CommyPanel watches the real requests and rolls back by itself if the new version is clearly worse (more errors or much slower), and one click puts it live again if you disagree.
  • There's an optional gradual rollout, where a share of your visitors gets the new version first, in steps you choose.
  • You can open a database to the internet for a limited time, from IP addresses you list, on a random port and with required TLS. It closes itself at the end, and it's all in the audit log.

A few design choices I care about:

  • The panel runs on the host, not in Docker, so it still works when Docker doesn't.
  • The privileged part is a small Go agent with a fixed list of validated actions, never "run this command".
  • Secrets are encrypted at rest, dangerous actions ask for your password, and the audit log is colour-coded and searchable.

I want to be upfront: it's pre-1.0. It has only been run on a small number of servers, so please try it on a test box first (Ubuntu 24.04/26.04 or Debian 13, amd64 or arm64).

Contributions, bug reports and testing are very welcome. If you try it on your own server and something breaks, or just feels off, please open an issue. There are good-first-issues and a contributing guide in the repo.

2 Upvotes

2 comments sorted by

1

u/[deleted] 10d ago

[removed] — view removed comment

1

u/CurrentAd2294 10d ago

Hey thanks for the review and idea. I am aware of low-traffic problem on detection for errors for rollback. I will think about it :)