Install on a cloud provider
deploy/production/deploy.sh asks which provider to use, takes the API
credentials, creates the server, installs Podmaker and prints the login.
It runs on your own machine (macOS or Linux) from a checkout of this
repository.
deploy/production/deploy.sh
==> Podmaker installer
Where should Podmaker run?
1) hetzner
2) aws
3) azure
4) digitalocean
5) ssh
Choice [1-5]: 1
Hetzner Cloud API token (Read & Write) (input hidden):
Server name [podmaker]:
Region/location (fsn1, nbg1, hel1, ash, hil, sin) [fsn1]:
Server size [cx33]:
SSH public key for the server [~/.ssh/id_ed25519.pub]:
Podmaker domain, e.g. podmaker.example.com (empty: a temporary sslip.io name) [-]: panel.podmaker.sh
Agent API hostname (servers connect here) [agent.panel.podmaker.sh]:
Public product website on this server, e.g. podmaker.sh (- for none) [-]: podmaker.sh
Administrator email (first Podmaker user): you@example.com
Email for Let's Encrypt certificates [you@example.com]:
Also use this server for your projects (installs Docker and enrolls it as a node)? [Y/n]:
About 10 minutes later:
Podmaker is running.
Web UI https://panel.podmaker.sh
Agent API https://agent.panel.podmaker.sh/agent/v1
Website https://podmaker.sh
Login you@example.com / <generated password>
Before you start
On your machine:
| Tool | Why | Install (macOS) |
|---|---|---|
| Go 1.27 | builds the agent binaries that new servers download | brew install go |
| git, python3, ssh | packing and uploading the release | preinstalled |
dig |
waits for your DNS records | preinstalled |
| jq | parses provider output | brew install jq |
| the provider’s CLI | creates the server | see the provider sections below |
A domain is recommended. You need DNS names pointing at the new server:
the panel (e.g. panel.podmaker.sh) and the Agent API (e.g.
agent.panel.podmaker.sh). The installer prints the IP and waits until
both records resolve. You can skip the domain for a first try: you then get
podmaker.<ip>.sslip.io-style names and can switch later (see
Changing the domain).
DNS records
Once the server exists, the installer shows its IP and the records to create:
┌─ DNS records to create ───────────────────────────
│ Server IP: 188.245.125.178
│ Type Name (full hostname) Value
│ A panel panel.podmaker.sh 188.245.125.178
│ A agent.panel agent.panel.podmaker.sh 188.245.125.178
│ A @ podmaker.sh 188.245.125.178
It then re-checks every 15 seconds and continues on its own when all
records point at the server. If DNS takes longer, press Ctrl-C and later run
deploy.sh update <name> to continue. deploy.sh dns <name> shows the
table and the current state again.
Remove other A, AAAA or CNAME records on these names, for example an old host or a parking page. With an AAAA record present, certificates are requested over IPv6 and fail.
Let Cloudflare records be created for you
If the domain is on Cloudflare, answer cloudflare to “Who should create the DNS records?”. The installer then needs an API token. Create it under My Profile → API Tokens → Create Token → “Edit zone DNS” and limit it to the zone.
The installer shows the planned changes and asks before applying them:
Cloudflare changes for zone podmaker.sh:
delete A podmaker.sh → 63.182.57.179
create A podmaker.sh → 188.245.125.178 (DNS only, TTL 300)
Records are created DNS only (grey cloud). The Agent API needs the TLS connection to end on the server, because agents authenticate with client certificates. Caddy obtains the certificates itself.
For an install that already exists:
IMP_DNS_PROVIDER=cloudflare deploy.sh dns <name> apply.
Provider credentials
The installer asks only for what the selected provider needs. Credentials stay
in the installer process’s environment and are passed to the provider’s CLI.
They are never written to disk or copied to the server. The Azure CLI is the
exception: az login keeps its own session in ~/.azure.
Hetzner Cloud
- CLI:
brew install hcloud - Credential: an API token with Read & Write permission. In the Cloud Console, open the project, then Security → API tokens → Generate API token.
- Defaults: location
fsn1, the smallest ofcx33/cx32/cpx32the project offers (4 vCPU / 8 GB), image Debian 13. - Created: the server, an SSH key (reused if already uploaded) and a
firewall
<name>-firewallallowing 22, 80, 443 and ICMP.
AWS EC2
- CLI:
brew install awscli - Credential: an access key (
AWS_ACCESS_KEY_ID+AWS_SECRET_ACCESS_KEY) or an existingAWS_PROFILE. Permissions needed: EC2 instances, key pairs, security groups, Elastic IPs, andssm:GetParameter(used to find the official Debian AMI). - Defaults:
eu-central-1,t3.large, 60 GB gp3, IMDSv2 required. - Created: instance, key pair
podmaker-<name>, security group<name>-sg(22/80/443) in the default VPC, and an Elastic IP so DNS stays valid across stop/start. SSH user:admin.
Microsoft Azure
- CLI:
brew install azure-cli - Credential: either the current
az loginsession, or a service principal (tenant id, app id, secret, subscription id) with the Contributor role:az ad sp create-for-rbac --name podmaker-deploy --role Contributor --scopes /subscriptions/<id>. - Defaults:
germanywestcentral,Standard_B2ms, Debian 13 gen2, static public IP. - Created: resource group
<name>-rg, VM, NSG with 22/80/443. SSH user:podmaker.
DigitalOcean
- CLI:
brew install doctl - Credential: a personal access token with read + write scope (API → Tokens).
- Defaults:
fra1,s-4vcpu-8gb, Debian 13. - Created: droplet, SSH key, cloud firewall
<name>-firewall.
Any other provider
Create a Debian/Ubuntu server yourself and choose ssh. See Install on your own server.
Non-interactive runs
Every question has an environment variable, so the installer can run from a
script or CI. Secrets can come from a file (<VAR>_FILE):
IMP_PROVIDER=hetzner \
HCLOUD_TOKEN_FILE=~/.config/podmaker/hcloud-token \
IMP_NAME=podmaker IMP_REGION=fsn1 IMP_SIZE=cx33 \
IMP_DOMAIN=panel.podmaker.sh IMP_AGENT_DOMAIN=agent.panel.podmaker.sh \
IMP_ADMIN_EMAIL=you@example.com IMP_SELF_NODE=1 \
deploy/production/deploy.sh
| Variable | Meaning |
|---|---|
IMP_PROVIDER |
hetzner, aws, azure, digitalocean, ssh |
IMP_NAME, IMP_REGION, IMP_SIZE |
server name, location, size |
IMP_SSH_PUBLIC_KEY |
public key to install (private key must sit next to it) |
IMP_DOMAIN, IMP_AGENT_DOMAIN |
panel and Agent API hostnames (- = sslip.io) |
IMP_DNS_PROVIDER, CLOUDFLARE_API_TOKEN |
manual (default) or cloudflare, plus the token (or CLOUDFLARE_API_TOKEN_FILE); IMP_DNS_CONFIRM=1 skips the confirmation |
IMP_SITE_DOMAIN |
optional public product website (apps/website) served from the same server, - for none |
IMP_ADMIN_EMAIL, IMP_ACME_EMAIL |
first user, Let’s Encrypt contact |
IMP_SELF_NODE |
1: install Docker and enroll the server as a node |
IMP_RELEASE_KEY, IMP_RELEASE_VERSION |
sign the agent binaries (production guide) |
HCLOUD_TOKEN, DIGITALOCEAN_ACCESS_TOKEN, AWS_*, AZURE_* |
provider credentials |
What gets installed
One server runs everything:
:80 / :443
│
Caddy (caddy-api) ── TLS certificates (Let's Encrypt)
├─ panel.podmaker.sh → PHP-FPM → Podmaker (Laravel)
├─ agent.panel.podmaker.sh → mTLS → Agent API
├─ podmaker.sh → product website (static, optional)
└─ your-project.com → 127.0.0.1:<port> (routes added by Podmaker)
│
PostgreSQL 18 · Redis · Horizon (queues) · scheduler
Docker + imp-agent (roles: proxy, worker) ← when "use this server for projects"
- Code:
/srv/podmaker/releases/<timestamp>, live release at/srv/podmaker/current(the last 3 releases are kept). - Configuration and generated secrets:
/srv/podmaker/shared/.env. Back this file up. It holds the master key that encrypts every stored secret. - First login:
/root/podmaker-admin.txt. Change the password and enable two-factor authentication after you sign in. - Services:
php8.4-fpm,podmaker-horizon,podmaker-scheduler,caddy-api,postgresql,redis-server,imp-agent. - Public sign-up is off (
IMP_REGISTRATION_ENABLED=false). Add users withphp artisan podmaker:user:create. - Caddy is configured through its Admin API (
127.0.0.1:2019), not a Caddyfile. That way the agent can add your projects’ domains to the same Caddy without overwriting the panel’s configuration.
Updating
From your checkout, at the version you want to run:
deploy/production/deploy.sh update podmaker
This uploads the current checkout, migrates the database, rebuilds the
frontend and switches the current symlink. If something fails, the
previous release keeps running.
Other commands:
deploy/production/deploy.sh list # installs known on this machine
deploy/production/deploy.sh ssh podmaker # shell on the server
The installer keeps per-install state (IP, SSH user, hostnames; no secrets)
in ~/.config/podmaker-deploy/<name>.env.
Changing the domain
The product website can be added, moved or removed the same way:
IMP_SITE_DOMAIN=podmaker.sh (or - to remove) with deploy.sh update.
Point the new names at the server, then:
IMP_DOMAIN=panel.podmaker.sh IMP_AGENT_DOMAIN=agent.panel.podmaker.sh \
deploy/production/deploy.sh update podmaker
Agents that are already enrolled keep the Agent API URL they enrolled with. Re-enroll them, or keep the old name pointing at the server.
Troubleshooting
| Symptom | Check |
|---|---|
| Stuck at “waiting for DNS” | dig +short A <name> @1.1.1.1 must return the server IP. |
https://…/up not answering |
journalctl -u caddy-api -n 100 (certificate errors, usually DNS or port 80 blocked). |
| 500 errors | /srv/podmaker/shared/storage/logs/laravel-*.log |
| Jobs not running | systemctl status podmaker-horizon podmaker-scheduler |
| Security warnings | cd /srv/podmaker/current/apps/control-plane && sudo -u podmaker php artisan podmaker:security:check |
| Installer log | /var/log/podmaker-install.log |
Deleting the server is done in the provider’s console. The installer never deletes cloud resources.