At a glance
| What | Value |
|---|---|
| Good for | Ops teams that don't run Docker on servers |
| Needs | Debian 13 or Ubuntu 24.04 or later (the binary needs glibc 2.39+), x86_64 or arm64, 2 GB RAM or more, root |
| Time to deploy | About 10 minutes |
| Cost | Only the machine, for example a $12/month 2 GiB VM |
What this sets up
- palace-server from the official release (checksum verified) in
/usr/local/bin, running as the unprivilegedpalaceuser, bound to127.0.0.1:8080only. The unit drops every capability, makes the filesystem read-only to the service and limits system calls.systemd-analyze security palace-serverrates it 1.3 ("OK"). - The embedding model in
/opt/palace/model: the same pinned files as the official Docker image, checksum verified, so Palace needs no internet after install. - PostgreSQL with pgvector on localhost. Palace connects as
palace_app, a role that cannot bypass row-level security. - Caddy with automatic HTTPS for your domain.
/metricsand/bootstrapare not reachable from outside. - Settings in
/etc/palace/palace.env, readable only by root and thepalacegroup.
Steps
Prepare
- A DNS record for your domain pointing at the machine, ports 80 and 443 open.
- A license key from palacememory.com.
Install
git clone https://github.com/AncientiCe/palace-server-examples.git
cd palace-server-examples/linux-systemd
sudo PALACE_DOMAIN=palace.yourco.com PALACE_LICENSE_KEY='your-license-key' sh install.shOptions, set the same way:
PALACE_VERSIONto pick a version (default0.8.2).PALACE_TARBALL=/path/to/palace-server-...tar.gzto install a release you already downloaded.DATABASE_URL=postgres://palace_app:...@host:5432/palaceto use an existing database instead of installing one. Run kubernetes/db-setup.sql ↗ on it first.PALACE_LICENSE_API_URL=https://api.palacememory.com/api/licenses/validatefor monthly plans.
Create the first admin
sudo palace-bootstrap 'Your Co' yourco [email protected]Save the api_key and org_id. The helper turns bootstrap off afterwards.
Connect your team
Follow Connect clients with https://<your domain>.
Upgrade
sudo PALACE_VERSION=<new version> PALACE_DOMAIN=palace.yourco.com PALACE_LICENSE_KEY='your-license-key' sh install.shRe-running the installer replaces the binary and keeps your database. It writes a new palace.env (new JWT secret, so browser and SSO sessions sign in again; API keys keep working), so to upgrade only the binary you can instead download the release tarball and sudo install -m 0755 palace-server /usr/local/bin/ && sudo systemctl restart palace-server.
Back up and restore
sudo -u postgres pg_dump -Fc palace > palace-$(date +%F).dump
sudo -u postgres pg_restore -d palace --clean --if-exists palace-YYYY-MM-DD.dumpCopy dumps off the machine.
Tested
Ran install.sh from scratch in a Debian 13 container with systemd: Palace, PostgreSQL 17 with pgvector and Caddy came up; Palace ran as palace on 127.0.0.1 with the hardened unit; HTTPS worked, /metrics was blocked, the bootstrap helper created the admin and turned bootstrap off, and a memory was stored, embedded and found by search. Ubuntu 24.04 was not tested.
Troubleshooting
journalctl -u palace-server -eshows why Palace stopped. A wrong or expired license stops startup.journalctl -u caddy -eshows certificate problems.- Something else? Open an issue ↗
Nomad, Hetzner, OpenShift, another IaC tool? Request a setup ↗. Never paste license keys, passwords, tokens or database URLs in an issue.
Other setups
Docker Compose on one machine · DigitalOcean (Terraform) · AWS (Terraform, ECS Fargate + RDS) · Google Cloud (Terraform, Cloud Run + Cloud SQL) · Azure (Terraform, Container Apps + PostgreSQL Flexible Server) · Kubernetes (Helm) · Kubernetes (plain kubectl) · Air-gapped (no internet)