Skip to content

Deployment Overview

Roster is distributed as the advantys/roster container image. The container serves the web platform, REST API, MCP endpoint, and background worker from one runtime. The public Docker Hub repository is advantys/roster.

Shape Database Roster instances Availability
Standalone SQLite One All editions
Standalone PostgreSQL 17 or 18 One Enterprise
High availability PostgreSQL 17 or 18 Two or more Enterprise

Standalone SQLite deployments keep the database and runtime state on durable /data storage. PostgreSQL deployments use a managed database and a dedicated migration job; high availability adds multiple identical Roster instances.

Use SQLite for the simplest evaluation and for a single-instance deployment that can attach durable block storage. Choose standalone PostgreSQL when an Enterprise deployment needs managed database operations without multiple Roster instances. Choose high availability only when both the Roster runtime and PostgreSQL are designed and operated as redundant services.

See Databases and Migrations before choosing storage, migration, or backup settings. Use High Availability for a multi-instance Roster cluster with PostgreSQL failover.

Check Settings > About Roster for the installed version and choose a versioned image tag for the target release. Read the release notes for the versions this upgrade crosses to check for version-specific requirements. Use the target image for the migration job and the new Roster instances.

Moving from Roster 1.4.0 or earlier to 2.0.0? Start with the Roster 2.0.0 upgrade checklist.

  1. Record the existing deployment. Keep the previous image available and record its exact ID with docker inspect --format '{{.Image}}' roster (replace roster with your container name). For recovery on another host, record registry digests with docker image inspect --format '{{json .RepoDigests}}' <image-id>. Keep a protected copy of the deployment definition and environment files. Record the container name, ports, mounts, network, restart policy, and environment or secret source. A full docker inspect can expose secrets. Check ROSTER_DATABASE_URL in your configuration to identify your database. An unset value or a file: URL selects SQLite. A postgres:// or postgresql:// URL selects PostgreSQL.
  2. Pause traffic and back up. Plan a maintenance window and stop the instances that write to the database or /data, including workers. Keep older instances stopped during migration unless the target release explicitly supports running them against the new schema. Back up the database and the complete /data state at the same recovery point. Follow Backups and Complete Roster state and restore. Keep the existing database, volume mount, settings, public URL, ROSTER_AUTH_SECRET, and ROSTER_PROVIDER_SECRET_ENCRYPTION_KEY. If the target requires a setting absent from your old configuration, see Production configuration before starting it.
  3. Migrate and start Roster.
    • SQLite. Start the new image with the existing /data volume. The default ROSTER_DATABASE_MIGRATION_MODE=auto applies pending migrations at startup. See the standalone SQLite example.
    • Production PostgreSQL. Run one job with ROSTER_DATABASE_MIGRATION_MODE=only and the schema-owning migration role. Wait for exit code 0, then start the new instances with ROSTER_DATABASE_MIGRATION_MODE=skip and the restricted application role. See the standalone PostgreSQL example.
  4. Verify the upgrade. Wait for /health/ready to return HTTP 200, then sign in and check an existing project. If you use OAuth with MCP, run an authenticated read with your OAuth profile, such as roster --profile prod --json projects list --limit 1 with a profile that can read projects. Readiness checks service availability. For PostgreSQL, the successful migration job confirms that the schema was applied.
  5. Recover if needed. Keep traffic paused and inspect the logs. If the PostgreSQL migration job succeeded and container replacement failed, fix the deployment settings and retry container creation. For rollback, restore the matching pre-upgrade database and complete /data backup into separate recovery storage before starting the previous image. See Complete Roster state and restore and PostgreSQL backups.

If you are upgrading from before 1.4.0, check the release notes for the versions you are crossing. For 1.0.2 or earlier, follow the additional steps below.

  1. Check your directory connectors. Approve or rename existing secret variables to keep them separate from other Roster server secrets. Switch affected remote URLs to HTTPS to protect credentials in transit. The connector upgrade guide shows how to check both settings. SFTP host key verification remains optional.
  2. Back up Roster. Pause Roster and save its configuration, database, and complete /data volume. Keep the previous image for rollback.
  3. Install 2.0.0. Follow the Docker upgrade steps above with advantys/roster:2.0.0 and your existing database, volume, and secrets.
  4. Verify before resuming service. Sign in, open an existing project, and check a connector sync and live lookup where supported. If you use the CLI, apply the CLI 2.0.0 changes and test your scripts.

If an upgrade fails, follow the restore procedure with the previous image and backups.

Additional steps when upgrading from Roster 1.0.2 or earlier

Section titled “Additional steps when upgrading from Roster 1.0.2 or earlier”

Roster 1.0.3 introduced protected authentication-data encryption. When your upgrade crosses that release, startup applies the protection automatically. Older images cannot read the updated representation.

Roster 1.0.3 also introduced stricter connector boundaries. Credentialed pagination and follow-up URLs must stay on the connector’s configured origin. CSV connector files must be stored below ${ROSTER_DATA_DIR}/connectors/csv (normally /data/connectors/csv in Docker), and each configured CSV file must remain below its connector’s local_base_path. Before upgrading, move files into that directory and update the connector if the older deployment used arbitrary host paths. These restrictions require no database or data-format migration.

Run these commands in a terminal on the machine where Docker is installed. For the local quick start, use the same machine as your browser. The commands assume a Bash-compatible shell on Linux or macOS; on Windows, use WSL or Git Bash. Confirm that Docker, OpenSSL, and curl are available before continuing:

Terminal window
docker --version
openssl version
curl --version
Terminal window
bootstrap_admin_password='Roster-1!'"$(openssl rand -hex 24)"
roster_config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/roster"
roster_env_file="$roster_config_dir/roster.env"
mkdir -p "$roster_config_dir"
chmod 700 "$roster_config_dir"
cat > "$roster_env_file" <<EOF
ROSTER_AUTH_SECRET=$(openssl rand -base64 48)
ROSTER_BOOTSTRAP_ADMIN_PASSWORD=$bootstrap_admin_password
ROSTER_PROVIDER_SECRET_ENCRYPTION_KEY=$(openssl rand -base64 48)
EOF
chmod 600 "$roster_env_file"
printf 'Save this bootstrap admin password now: %s\n' "$bootstrap_admin_password"
docker pull advantys/roster:latest
docker run -d \
--name roster \
-p 127.0.0.1:3000:3000 \
-v roster_data:/data \
--env-file "$roster_env_file" \
advantys/roster:latest
unset bootstrap_admin_password

Follow the startup logs:

Terminal window
docker logs --follow roster

Press Ctrl+C to stop following the logs; this does not stop the container. Confirm that Roster is ready:

Terminal window
curl -fsS http://localhost:3000/health/ready

Then open http://localhost:3000/dashboard. A new data volume bootstraps admin@roster.local with the generated bootstrap password and asks for a password change after first sign-in.

Save the printed bootstrap password in your password manager. Keep the mode-0600 launch file: its auth and provider-encryption secrets must remain stable when the container is recreated or upgraded. After you change the bootstrap administrator password, remove only the ROSTER_BOOTSTRAP_ADMIN_PASSWORD=... line from that file. Roster does not display or recover the bootstrap value.

This setup uses the default SQLite database at /data/roster.db.

This local launch does not require a model provider API key to start the container, sign in, configure settings, or explore the platform. Resolve and Model Runs require one configured model provider key, such as OPENAI_API_KEY; until then, model-backed requests return a configuration error.

  1. Sign in as admin@roster.local with the saved bootstrap password.
  2. Follow Create your first project and participant to add a test project and a routing role through the web interface.
  3. For a people-resolution result, configure a Directory Connector, reopen the participant, and associate a directory user or group. A fresh Roster database does not contain external directory people to add manually; you can skip this step when you only want to inspect participant-role selection.
  4. Configure a Model Provider when you are ready to test Resolve—asking Roster which role or person should handle a request.
  5. Open Playground, select Test mode and the sample project, then ask: Who should handle vendor security review for the Atlas onboarding project?
  6. Inspect the matched role on the Participants tab. If you associated a directory user or group, inspect the Users tab as well. Open Resolve Requests to review the saved request.

Without a directory association, a routing-only run can still select the sample participant, but the Users tab remains empty and the resolution status is not_found. This means Roster matched the role but could not resolve it to a person; it is not a container or model-provider setup failure.

Model-provider values are container environment settings. After adding them to the protected launch file, recreate only the roster container. The named volume remains intact, so projects, participants, and other evaluation data are preserved. This quick-start example reuses the exact image ID and the Docker volume currently mounted at /data, including a named restore volume. For a bind mount, a missing /data mount, or other custom settings, use your original deployment definition and keep its mounts and runtime settings.

Terminal window
(
set -e
roster_env_file="${XDG_CONFIG_HOME:-$HOME/.config}/roster/roster.env"
roster_image="$(docker inspect --format '{{.Image}}' roster)"
docker image inspect --format '{{.Id}}' "$roster_image" >/dev/null
roster_volume="$(docker inspect --format '{{range .Mounts}}{{if and (eq .Destination "/data") (eq .Type "volume")}}{{.Name}}{{end}}{{end}}' roster)"
if [ -z "$roster_volume" ]; then
printf >&2 'Expected a Docker volume at /data. Reuse the existing deployment definition instead.\n'
exit 1
fi
docker stop roster
docker rm roster
docker run -d \
--name roster \
-p 127.0.0.1:3000:3000 \
-v "$roster_volume:/data" \
--env-file "$roster_env_file" \
"$roster_image"
)

Follow the startup logs and repeat the readiness check shown above before continuing the evaluation.

Warning: The following commands permanently delete the local evaluation container and all data in its Docker volume. Do not use them for a deployment whose data you need to keep.

Terminal window
docker rm -f roster
docker volume rm roster_data

Run the complete local quick-start block again to create a fresh volume, bootstrap password, and launch environment file.

Expose port 3000 from the container and mount durable storage at /data.

Image: advantys/roster:latest
Port: 3000
Volume: /data

The image defaults to:

NODE_ENV=production
HOST=0.0.0.0
PORT=3000
ROSTER_DATA_DIR=/data

With ROSTER_DATA_DIR=/data and no ROSTER_DATABASE_URL, the container uses SQLite at /data/roster.db.

ROSTER_AUTH_URL defaults to http://localhost:${PORT} when unset, which is useful for same-machine local container tests. Set it to the final public HTTPS origin before exposing the deployment or connecting OAuth-based MCP clients.

Roster derives the MCP OAuth resource URI automatically as ${ROSTER_AUTH_URL}/mcp.

ROSTER_MCP_AUTH_MODE is optional and defaults to api_key,oauth. Set it only when you need to restrict MCP to api_key, oauth, or local-only none.

For a new deployment, continue with Production configuration. For an existing installation, see Upgrade an existing Docker deployment.

Use these commands for an installation created with the local Docker steps above. Replace <target-version> with the release tag you chose. For a custom deployment, reuse its deployment definition with the existing name, ports, mounts, network, restart policy, and environment source. Before stopping the old container, confirm that /data is backed by a Docker volume. If it uses a bind mount or has no mount there, use your deployment definition and preserve its storage configuration. Complete the full-state backup before running this block.

Terminal window
(
set -e
roster_env_file="${XDG_CONFIG_HOME:-$HOME/.config}/roster/roster.env"
roster_image="advantys/roster:<target-version>"
roster_volume="$(docker inspect --format '{{range .Mounts}}{{if and (eq .Destination "/data") (eq .Type "volume")}}{{.Name}}{{end}}{{end}}' roster)"
if [ -z "$roster_volume" ]; then
printf >&2 'Expected a Docker volume at /data. Reuse the existing deployment definition instead.\n'
exit 1
fi
docker pull "$roster_image"
test "$(docker inspect --format '{{.State.Status}}' roster)" = exited
docker rm roster
docker run -d \
--name roster \
-p 127.0.0.1:3000:3000 \
-v "$roster_volume:/data" \
--env-file "$roster_env_file" \
"$roster_image"
for attempt in $(seq 1 60); do
if [ "$(curl -s -o /dev/null -w '%{http_code}' http://localhost:3000/health/ready)" = 200 ]; then
printf 'Roster is ready.\n'
exit 0
fi
if [ "$attempt" -eq 60 ]; then
docker logs --tail 100 roster
printf >&2 'Roster did not become ready. Keep the container stopped from production traffic and inspect the logs above.\n'
exit 1
fi
sleep 2
done
)

The parenthesized commands stop on failure without closing an interactive terminal. Removing the old container leaves its /data volume in place.

An existing installation with a bootstrap administrator can omit ROSTER_BOOTSTRAP_ADMIN_PASSWORD. For engine changes, see Changing database engines.

For production or externally reachable deployments, set ROSTER_AUTH_URL to the final public HTTPS origin and store secrets in your deployment secret manager. Do not bake secrets into a custom image.

Generate separate high-entropy values for ROSTER_AUTH_SECRET, ROSTER_BOOTSTRAP_ADMIN_PASSWORD, and ROSTER_PROVIDER_SECRET_ENCRYPTION_KEY. Keep the encryption secrets stable across container restarts; changing them can invalidate sessions or prevent encrypted settings and provider credentials from decrypting.

Terminal window
openssl rand -base64 48

For the first start of a fresh production database, the minimum production environment is:

ROSTER_AUTH_URL=<your-roster-public-url>
ROSTER_AUTH_SECRET=<generated-auth-secret>
ROSTER_BOOTSTRAP_ADMIN_PASSWORD=<generated-strong-password>
ROSTER_PROVIDER_SECRET_ENCRYPTION_KEY=<generated-provider-secret-encryption-key>

ROSTER_BOOTSTRAP_ADMIN_PASSWORD is a first-start secret. After confirming the bootstrap administrator exists, remove it from the deployment configuration. Roster ignores it while the bootstrap administrator exists, but a fresh or reset database would reuse the retained bootstrap password. Keep ROSTER_AUTH_SECRET and ROSTER_PROVIDER_SECRET_ENCRYPTION_KEY configured and stable.

Add one model provider key before using Resolve or Model Runs. See Model Providers for supported providers, models, gateways, and runtime variables.

Use this MCP auth override only when OAuth MCP clients should connect and API-key automation should not:

ROSTER_MCP_AUTH_MODE=oauth

Unset or blank defaults to api_key,oauth for production automation and OAuth-based end-user MCP clients. Enable ROSTER_OAUTH_DYNAMIC_CLIENT_REGISTRATION and ROSTER_OAUTH_UNAUTHENTICATED_CLIENT_REGISTRATION only when the deployment intentionally accepts MCP clients that register themselves.

See Environment Variables for the complete public runtime and CLI variable reference.

  • Terminate TLS at the platform load balancer, ingress, or proxy.
  • Preserve the public host and scheme through forwarding headers.
  • Configure the database, migration mode, and backups in Databases and Migrations.
  • For multi-instance deployments, follow the High Availability architecture.
  • Store secrets in the provider’s secret manager, not in image configuration.
  • Configure health checks against the web service.
  • Configure log export for container logs and worker journals.
  • Keep API keys and provider credentials scoped to the minimum required access.
  • Install and monitor the license required by the selected edition.

  • Licensing covers editions, limits, license installation, expiration, and renewal.

  • High Availability covers Roster instances, load balancing, PostgreSQL primary/read-replica routing and failover, health probes, and shared runtime coordination.

  • Model Providers covers provider credentials, supported models, gateways, and API options.
  1. Open the public Roster URL and confirm login works.
  2. Create or configure the first production administrator.
  3. Create a project and representative participants.
  4. Configure identity providers for human access.
  5. Configure directory connectors and verify refreshes.
  6. Configure a model provider and test a representative question in Playground.
  7. Create scoped API keys for REST, CLI automation, and MCP clients.
  8. Connect MCP clients only after MCP authentication is configured and tested.