Deploy ShieldON
Install with a release bundle in one command, or connect existing database, cache, and object storage services.
1. Prepare the server
Minimum: 4 CPU cores, 8 GB RAM, and 100 GB storage. Install Docker Engine and Docker Compose v2 on x86_64 / ARM64 Linux. When middleware runs on the same host, allow additional resources for data, concurrency, and backups.
For manual downloads, visit the official ShieldON downloads or the latest release and download shieldon.tar.gz. No GitHub account or login is required. The server needs access to GHCR and, for optional middleware, Docker Hub. The bundle contains deployment scripts and image references; images are downloaded on first startup.
2. Download and extract the release bundle
Install curl, create an installation directory on the server (/data/shieldon below; change it as needed), then download and extract the bundle. Replace VERSION with your target release; this example uses v0.6.2. If you downloaded the bundle manually using the links above, place it in that directory and skip the curl download command.
set -eu
mkdir -p /data/shieldon
cd /data/shieldon
VERSION=v0.6.2
RELEASE_URL="https://github.com/basilos-ai/shieldon-releases/releases/download/$VERSION"
curl -fL --retry 3 -o shieldon.tar.gz "$RELEASE_URL/shieldon.tar.gz"
test ! -e compose.yaml
test ! -e .env
test ! -e runtime
tar -xzf shieldon.tar.gz --strip-components=1
chmod 600 .envFor an existing installation, use the upgrade procedure below to avoid overwriting configuration and data.
3. Configure the public URL and start
Edit .env in your installation directory, keep the supplied TAG, and configure the public entry point:
| Setting | Description |
|---|---|
SHIELDON_PUBLIC_URL | The address users will open, such as https://shieldon.example.com; a server IP and port can be used for an internal trial |
PUBLIC_PORT | Published port, default 13000 |
SHIELDON_COOKIE_SECURE | Set to true for HTTPS and false for an internal HTTP trial |
Option 1: One-command installation with optional middleware
sh deploy.sh --with-middlewareThe installer generates middleware passwords, starts PostgreSQL, Redis, and SeaweedFS, waits for them to become healthy, then starts ShieldON. Passwords are stored in the restricted .env, data in runtime/data/, and encryption keys in runtime/secrets/. Repeated runs preserve existing passwords and data.
Middleware installation is optional: components can be deployed separately
or replaced with existing services. The bundled image references are
postgres:latest, redis:latest, and chrislusf/seaweedfs:4.54. PostgreSQL
and Redis are required application dependencies; SeaweedFS is only needed for
optional body object storage. Workspace retention settings control which
request and response bodies are saved.
Install only selected components, for example when object storage is unnecessary:
sh middleware.sh postgres redis
sh deploy.shYou can also run sh middleware.sh postgres, sh middleware.sh redis, or sh middleware.sh seaweedfs separately; these commands do not start the application. Components are accessible only through the same-host Docker network by default. For separate servers, configure controlled private-network ports and access permissions, then connect using option 2.
Option 2: Use existing middleware
Fill in these settings in .env, then run sh deploy.sh:
| Service | Configuration |
|---|---|
| PostgreSQL | POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_SSLMODE |
| Redis | REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, REDIS_DB, REDIS_SCHEME (redis or rediss) |
| Optional S3 storage | S3_ENDPOINT, S3_REGION, S3_CAPTURE_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY; uses an existing bucket by default |
Addresses must be reachable from application containers; do not use localhost for an external server. The database account needs permission to initialize and upgrade the schema. Write external passwords using Compose .env syntax; use single quotes for values containing $ or spaces. Model calls and usage statistics work without object storage. Existing services and bundled components can be mixed; run middleware.sh only for the components you need.
HTTPS entry point
Point the HTTPS reverse proxy to PUBLIC_PORT, preserve Host, and set X-Forwarded-Proto: https. Disable response buffering and allow sufficiently long timeouts for streaming calls. Only Frontend publishes a port by default. Restrict entry-point access to deployment staff until the first administrator is created.
4. Verify services and sign in
docker compose --env-file .env -f compose.yaml ps -a
curl -fsS http://127.0.0.1:13000/healthIf you changed the port, replace 13000 accordingly. frontend, gateway, and control-plane should be healthy; the one-shot bootstrap exiting with code 0 is normal. Check optional middleware with docker compose --env-file .env -f compose.middleware.yaml ps.
Open the configured URL and follow the setup flow to create an administrator and Workspace; there is no default administrator password. Connect a Provider, add models, create a Gateway API key, and publish the configuration. Make a real request and verify its request and usage records. See Make your first request. Documentation is at /docs/; model API entry points are /v1/ and /v1beta/.
5. Back up and upgrade
Back up the database, Redis, enabled object storage, .env, deployment files, runtime/config/, and runtime/secrets/. Copying a running database directory is not a substitute for a consistent backup.
Choose the target version from the official downloads, review its migration and rollback notes, and place the archive and checksum under runtime/releases/<version>/. Run the following command, replacing the example with your target version:
Alternatively, run the following commands from your existing installation directory to download and upgrade. Replace VERSION with your target release; skip the curl download command if you downloaded the files manually.
Before upgrading, manually place shieldon.tar.gz.sha256 from the target release in the directory above; the updater requires it for automatic verification.
set -eu
VERSION=v0.6.2
RELEASE_URL="https://github.com/basilos-ai/shieldon-releases/releases/download/$VERSION"
RELEASE_DIR="runtime/releases/$VERSION"
mkdir -p "$RELEASE_DIR"
curl -fL --retry 3 -o "$RELEASE_DIR/shieldon.tar.gz" "$RELEASE_URL/shieldon.tar.gz"
sh update.sh "$VERSION"The update verifies the release and stops application writers before migrating the database. If migration or subsequent startup fails, confirm the applications are stopped, resolve the error and rerun sh deploy.sh with the same release. In-flight requests may be interrupted.
Application upgrades do not upgrade middleware. Middleware latest tags are for initial installation; repeated installation does not recreate existing containers. Plan middleware upgrades separately, including backups, compatibility checks, and data migration, especially across PostgreSQL major versions. Preserve the original passwords and keys when data already exists.
Troubleshooting
docker compose --env-file .env -f compose.yaml logs --since 15m --tail 100For connection failures, check middleware health, addresses, passwords, and TLS. For image pull failures, check network access and the release version. The default ordinary inference request body limit is 1 GiB; change GATEWAY_MAX_REQUEST_BODY_BYTES in .env and rerun sh deploy.sh, adjusting the outer proxy as well. Model token limits are independent.
When contacting support, provide the version, time, error code, and request ID. Do not send .env, keys, or request bodies. See Troubleshooting for more information.