At a glance
| What | Value |
|---|---|
| Good for | Restricted and air-gapped networks, strict data-residency rules |
| Needs | A connected machine with Docker to build the bundle; an offline Linux machine with Docker 24+ and Compose v2, 2 GB RAM or more |
| License | An annual license. Monthly licenses renew online, so they don't suit offline use |
| Bundle size | About the size of the three images (Palace, Postgres with pgvector, Caddy) |
What this sets up
- Everything in the Compose setup, with two changes: Docker never pulls images, and Caddy serves HTTPS with a certificate from your internal certificate authority instead of Let's Encrypt.
Steps
Build the bundle (connected machine)
git clone https://github.com/AncientiCe/palace-server-examples.git
cd palace-server-examples/airgapped
./build-bundle.sh 0.8.2This writes palace-airgapped-0.8.2.tar.gz and its .sha256. Move both to the offline machine with your approved transfer process.
Load it (offline machine)
sha256sum -c palace-airgapped-0.8.2.tar.gz.sha256
tar -xzf palace-airgapped-0.8.2.tar.gz
cd palace-airgapped-0.8.2
gunzip -c images.tar.gz | docker loadAdd your certificate and settings
- Put the certificate (full chain) and key for your hostname in
certs/cert.pemandcerts/key.pem. The Caddy image runs as root, so a key readable only by root (chmod 600 certs/key.pem) works. cp .env.example .envand fill it in exactly as in the Compose guide.PALACE_DOMAINis your internal hostname.
Start
docker compose -f docker-compose.yml -f docker-compose.airgapped.yml up -d
docker compose psdocker compose logs palace-server should show license verified and embedding model loaded; semantic search enabled.
First admin, clients, backups
Exactly as in the Compose guide: first admin, connect your team, back up and restore. Always pass both -f files to docker compose.
Upgrade
Build a new bundle for the new version, load it, set PALACE_VERSION in .env and run the up -d command again. Your data stays in the palace_postgres_data volume.
Renewing an annual license
Put the new key in PALACE_LICENSE_KEY and run the up -d command again. A running server keeps working for 14 days after its license expires, but an expired key stops a fresh start, so renew before the date.
Tested
Built a bundle with build-bundle.sh, loaded it, and ran it on a Docker network with no outbound access, using a certificate from a test CA. Palace started and loaded its embedding model offline; HTTPS through Caddy, the blocked paths, bootstrap, storing a memory and search all worked.
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) · Linux without Docker (systemd)