Deploy guide

Palace Server with no internet access (air-gapped)

The Docker Compose setup for a network with no internet access. You build a bundle on a connected machine, carry it across, and run it with your own certificate. Palace needs no outbound access: the embedding model is inside the image and an annual license is checked locally.

At a glance

WhatValue
Good forRestricted and air-gapped networks, strict data-residency rules
NeedsA connected machine with Docker to build the bundle; an offline Linux machine with Docker 24+ and Compose v2, 2 GB RAM or more
LicenseAn annual license. Monthly licenses renew online, so they don't suit offline use
Bundle sizeAbout 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

01

Build the bundle (connected machine)

Build the bundle
git clone https://github.com/AncientiCe/palace-server-examples.git
cd palace-server-examples/airgapped
./build-bundle.sh 0.8.2

This writes palace-airgapped-0.8.2.tar.gz and its .sha256. Move both to the offline machine with your approved transfer process.

02

Load it (offline machine)

Load the bundle
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 load
03

Add your certificate and settings

  • Put the certificate (full chain) and key for your hostname in certs/cert.pem and certs/key.pem. The Caddy image runs as root, so a key readable only by root (chmod 600 certs/key.pem) works.
  • cp .env.example .env and fill it in exactly as in the Compose guide. PALACE_DOMAIN is your internal hostname.
04

Start

Start the stack
docker compose -f docker-compose.yml -f docker-compose.airgapped.yml up -d
docker compose ps

docker compose logs palace-server should show license verified and embedding model loaded; semantic search enabled.

05

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.

View on GitHub ↗

Running something different?

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)

Put your knowledge to work

Give your next session
a head start.

Start your team trial

60 days · 10 seats · No credit card