rodyherrera/Quantum
About
🚀 Hackable & Self-hosted Open-Source alternative to Vercel, Heroku, Netlify, etc. All your applications, just in one place. Develop and deploy with your favorite tools, and enjoy continuous deployment with GitHub.
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalQuantum

Quantum is a self-hosted PaaS. From one dashboard you deploy GitHub repositories, databases, one-click templates and Docker Compose stacks on your own server, with logs, a shell, environment variables, persistent volumes, metrics and VS Code in the browser for every one of them.
Deploy Quantum
You need a Linux host with Docker and the Compose plugin. bash scripts/install_docker.sh installs both.
git clone https://github.com/rodyherrera/Quantum
cd Quantum
bash scripts/deploy.sh
The script writes .env from .env.example, generates the secrets, builds the images and starts
three containers: quantum-api, quantum-web and quantum-postgres. The dashboard is at
http://localhost:5050 and the API at http://localhost:7080.
Then:
- Sign up through the dashboard. Self-signup is open until you set
REGISTRATION_DISABLED=truein.envand rundocker compose up -d --build api. - Load the template catalogue:
docker compose exec api pnpm seed:templates. Re-running it only adds templates that are missing. - Create a GitHub OAuth app if you want to deploy repositories (below).
scripts/deploy.sh never overwrites a value already set in .env, so updating is:
git pull && bash scripts/deploy.sh
On a public server
bash scripts/deploy.sh --public # URLs on the machine's public IP
bash scripts/deploy.sh --host quantum.example.com # or on a domain that points at it
Open ports 5050 and 7080 in the firewall. For HTTPS, put the reverse proxy you already run in front of them. With NGINX:
server {
listen 80;
server_name quantum.example.com;
location / { proxy_pass http://127.0.0.1:5050; }
location /api/ {
proxy_pass http://127.0.0.1:7080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
certbot --nginx -d quantum.example.com adds the certificate. Then in .env:
SERVER_IP=127.0.0.1
DOMAIN=https://quantum.example.com/api
CLIENT_HOST=https://quantum.example.com
and docker compose up -d --build: the ports are now reachable only by the proxy, and DOMAIN
is compiled into the web bundle, so the web image needs the rebuild.
Using Quantum
Everything belongs to an organization; members are owners, admins, members or viewers. Inside an organization, projects group applications, and every application lives in a project. The sidebar lists your projects under the navigation, and each one opens Applications filtered to it. ⌘K (Ctrl+K) opens a palette that jumps to any page, starts a deploy or switches the theme.

Applications

An application is one of:
- A GitHub repository. Pick it from the connected account, choose a branch, and Quantum builds and runs it: a Dockerfile in the repo, a prebuilt image, or your own install, build and start commands. Every push to the branch redeploys.
- A database. Postgres, MySQL, MariaDB, MongoDB or Redis, with backups and restore from the dashboard.
- A template. One click on anything in the catalogue: n8n, Directus, WordPress, Uptime Kuma, Ollama and the rest.
- A stack. Deploy a stack, under the arrow next to New application, takes a compose
file, either from one of your GitHub repositories or pasted in. Each service becomes a container
on the stack's own network, so services reach each other by name exactly as with
docker compose up.

Applications groups them by state (deploying, failed, running, stopped), with a tab per kind, and shows each one's internal address; the published ports are on the application itself. Every application has Logs, a Shell into the container and Environment variables, with Start, Stop, Restart and Redeploy at the top of its page; repositories and stacks list their status, source and ports on the right. Variables save automatically and apply on Redeploy.

Compose stacks

From a repository is the way that runs itself. Pick the repository and branch, Quantum finds the
compose files at its root (compose.dokploy.yml and friends count), shows the ${VAR} placeholders
the file uses so you can fill them, and registers the webhook on GitHub for you. From then on every
push to that branch, or every published release if you prefer, clones the branch, builds the
services that have build: on the server, pulls the rest and redeploys. The compose file is read
from the repository on each deploy; edit it there. Branch, file and trigger live in the stack's
Settings tab, next to its variables.

Pasted compose files work too, without build: and without a trigger other than the Redeploy
button. Supported per service either way: image, command, environment, ports, volumes
(named volumes) and depends_on, plus build: for repository stacks. Host bind mounts are
rejected with a message naming the service. Host ports are assigned by Quantum, as for every other
application. Removing a service from the file and redeploying removes its container.
Environment variables

Repositories, template installs and compose services each have their own variables. When a
repository is cloned, a .env at its root is imported once, so a project that already runs
locally starts with the same configuration.
Deploys without downtime
A redeploy of a repository never takes the app down. The new version starts next to the running one and only takes the traffic once it answers on its port, or on a Health check path set in the repository's settings. If it crashes or never answers, the deploy fails with the reason and the old version keeps serving as if nothing happened. After the switch the old version stays up for a minute, and if the new one dies in that time, traffic goes straight back to it.
Each app sits behind a small proxy that holds its published port and its internal hostname, which is what lets two versions run side by side. For a minute or two during a deploy both versions run, so they share the app's volumes and memory doubles. An app on the Exec build strategy builds in place, inside the container that serves it, so it does not get this. An app created before this change moves behind its proxy on its next deploy, with a blip of under a second that one time.
Internal addresses
Every container Quantum runs also joins a network shared by the organization. Applications shows
its IP there next to each one, and a stack's Services tab lists the IP of every service, so an
app deployed from GitHub reaches a compose service or a managed database at http://<ip>:<port>
without publishing anything to the host. Services of one stack reach each other by service name as
well. The IP is refreshed when a container is recreated, so copy it again after a redeploy.
Metrics, usage and events

Metrics shows one container at a time, whether a repository, a database or a single service of a stack: CPU, memory, network in and out since it started and the processes running inside, with the recent samples charted. Network is charted as the traffic between two samples.

Usage adds up transfer, CPU and peak memory per project over the last 15 minutes, hour, 6 hours or 24 hours, next to each project's share of the transfer and the server's own CPU and memory.

Events is the record of what Quantum did: every deployment step, start and stop, with its source and time, grouped by day and filterable by level. A stack that is still installing shows the same steps on its own page as they happen.
Persistent volumes
A repository keeps its checkout across deploys. Anything it writes elsewhere is lost when the container is recreated, unless the path is listed under Persistent volumes in the repository settings. Databases and templates persist on volumes by default. Volumes go away with the application.
Private registries

Settings → Organization → Container registries takes a registry host, a username and a
token, and every pull from that host uses them. For GitHub Container Registry use a classic
personal access token with read:packages; without an entry for ghcr.io, Quantum falls back
to the connected GitHub account of the application's owner.
VS Code in the browser
Open in VS Code on any application starts a code-server
container that mounts the same files the application sees, joins its network and hands you a
URL and a password. Edits to a repository land in /app at once; exec apps pick them up on
Restart, Dockerfile and image apps on the next deploy, and the next push from GitHub replaces
tracked files, so commit what you want to keep. Stop frees the workspace. Codespaces in the
sidebar lists every workspace in the organization.
Custom domains for deployments
Deployments are reachable through their published ports. To put a hostname in front of one, add an A record for the server and point a reverse proxy at the port, or at the container's internal address if the proxy runs on the same host.
GitHub OAuth
Deploying a repository needs a GitHub OAuth app: Settings → Developer settings → OAuth Apps →
New OAuth App. Homepage URL is your CLIENT_HOST, callback URL is
<DOMAIN>/github/oauth/callback. Copy the client id and secret into GITHUB_CLIENT_ID and
GITHUB_CLIENT_SECRET and run docker compose up -d --build api. Quantum asks for the user,
repo and read:packages scopes.

Plain Compose
The script is a convenience. cp .env.example .env, fill SECRET_KEY, ENCRYPTION_KEY and
POSTGRES_PASSWORD, and docker compose up -d --build does the same. Compose fails naming the
variable if a required secret is missing.
Configuration
Everything is in .env at the repository root. deploy.sh fills the required values; the rest
have working defaults.
| Variable | Notes |
|---|---|
SECRET_KEY |
Signs sessions. Any long random string. |
ENCRYPTION_KEY |
64 hex chars, or base64 of exactly 32 bytes. Encrypts stored GitHub and registry tokens. |
POSTGRES_PASSWORD |
Generated for you. |
SERVER_PORT, CLIENT_WEB_APP_PORT, POSTGRES_PORT |
Host ports of the API (7080), the web app (5050) and Postgres (5432). Change one when it is already taken. |
DOMAIN, CLIENT_HOST |
API and web URLs as the browser sees them, with scheme and port. CORS allows exactly CLIENT_HOST. |
SERVER_IP |
Interface the API and web ports bind to. 0.0.0.0 by default, 127.0.0.1 behind your own proxy. |
PUBLIC_HOST |
Public IP or domain the published ports of your applications are linked on. deploy.sh fills it; set it by hand when the api resolves DNS differently from your users. |
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET |
The OAuth app above. |
SMTP_*, WEBMASTER_MAIL |
Password resets and alert emails. |
REGISTRATION_DISABLED |
true closes self-signup. |
Where the data lives
- Postgres: the
postgres_datavolume. - Repositories and their logs:
/var/lib/quantum/<NODE_ENV>/containers/<user id>/, mounted into the API container. - Databases, templates, compose volumes and persistent volumes: Docker named volumes.
On boot, and every five minutes after, the API reconciles what is running against what should be: containers that should be up are started, addresses are refreshed. A host reboot brings everything back without any action.
The landing page
Quantum's public landing page and self-host guide are a separate app from the dashboard, so a self-hosted install serves the dashboard alone and opens straight onto Applications. The landing shares the dashboard's code but builds on its own, and runs from its own compose file:
docker compose -f docker-compose.landing.yml up -d --build # LANDING_PORT, 5060 by default
pnpm --filter web dev:landing # locally
Support
Issues and pull requests are welcome. If Quantum is useful to you, you can buy me a coffee.
Explore related projects
Loading…