Skip to content

docs: add Docker deployment details from the retired server guide - #152

Merged
zZebrahz merged 13 commits into
mainfrom
docs/docker-deployment
Oct 16, 2026
Merged

zZebrahz merged 13 commits into
mainfrom
docs/docker-deployment

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Part of #38

Silo-Server/silo-server#1635 removed the server repository's Docker deployment guide, so the manual is now the only place for this material. Several details only existed in that guide, or in the two server PRs named in the issue comments: the node port variables, the full set of PostgreSQL tuning variables, how the search index rebuilds, how many database connections nodes need, and what large migrations need. I checked each item against silo-server origin/main and left out the ones that are no longer true or that another thread owns (listed below).

Pages changed

Page Change Preview
Requirements and installation options Multi-host setups point to the manual, native builds to DEVELOPMENT.md Open
Docker deployment reference PROXY_PORT and TRANSCODE_PORT, the transcode mount path, search index status and rebuilds Open
Server configuration and dependencies MEDIA_CONTAINER_ROOT warning, tuning variable table, memory detection, node connections, JIT, tuning an external database, api mode Open
Transcode nodes New node requirement: room in PostgreSQL's connection limit Open
Set up transcoding and chapter previews NVIDIA_GPU_COUNT Open
Update Silo safely Large table rewrites and locks left behind by a restart Open

What changed on each page

Requirements and installation options

  • "covered in the server repository" now links multi-host setups to Transcode nodes and Server configuration, and native builds to the server's DEVELOPMENT.md. The deployment guide it used to point at no longer exists.

Docker deployment reference

  • Ports table: PROXY_PORT (8083) and TRANSCODE_PORT (8082), the host ports of the commented silo-proxy and silo-transcode examples.
  • Data directories: transcode is mounted at /tmp/silo-transcode.
  • Optional Meilisearch: the build retries on its own, Search status > Answering searches shows Meilisearch, Meilisearch (keyword only), or Postgres full-text, and Rebuild index opens the rebuild task. A setting that changes the index format, such as Match by meaning as well as words, rebuilds after a restart while search keeps working.

Server configuration and dependencies

  • Environment configuration: keep MEDIA_CONTAINER_ROOT unchanged on an existing server.
  • PostgreSQL tuning: the restart is easiest before you add libraries. The sentence about "the other POSTGRES_TUNE_* values" is now a table with defaults from .env.example and postgres_tune.go.
  • Memory detection in outcome terms, plus the 128 GB skip and its postgres auto-tuning disabled log line.
  • From silo-server#2157: each process opens its own pool of Maximum Postgres connections (default 20), so with nodes, POSTGRES_TUNE_CONNECTIONS needs that times the number of processes. Silo turns JIT off on its own connections unless jit is already set.
  • Tuning an external database requires granting the DATABASE_URL user ALTER SYSTEM, and what that exposes.
  • Server modes: api can still transcode when node routing falls back to it.
  • The External PostgreSQL and Redis section is untouched (docs: say that saving the Redis settings checks the connection first #133 owns it).

Worth checking: the tuning text is now about six paragraphs. I kept the cgroup and /host/proc/meminfo order out and only described the outcome.

Transcode nodes

Set up transcoding and chapter previews

Update Silo safely

  • Restarting during a migration can leave PostgreSQL holding the abandoned run's locks.
  • Some releases rewrite large tables in place: Silo can't use most of its data until it finishes, and the database disk needs room for a second copy. Check free space when the release notes mention one.

Left out on purpose

  • Prepared downloads, plus the first comment's download-artifacts lines for docker.md and backup-restore.md: Document download storage management for administrators #132 documents the new Admin > Downloads page and the per-node prepared-file directory and budget, and owns that topic. The mount from silo-server#1645 also hasn't merged.
  • Valkey section: External PostgreSQL and Redis already has the one-sentence Valkey note, and the voice guide says it stays one sentence rather than a Compose walkthrough. That section belongs to docs: say that saving the Redis settings checks the connection first #133 anyway.
  • SQLite per-user data mount: since silo-server c6383aa4d, the settings picker shows SQLite (TBD) as unavailable, and Where per-user data is stored says "PostgreSQL is the only supported option". A "before switching to SQLite" step would describe something readers can't do.
  • --migrate-down-to rollback: the issue flags this as a maintainer decision. The flag exists on main, but the page still says to restore the backup.
  • Windows ; in COMPOSE_FILE: the GPU section covers Linux only, and the requirements page already says the Linux GPU steps don't apply unchanged elsewhere.
  • The bigint widening example and the exact memory detection order: no other page goes to that depth, so the page gives the outcome.

Evidence

Source reviewed, not tested on a live server or device:
silo-server 9d37930c6, siloserver.org 2264f3c.

  • Ports, mounts, GPU count: docker-compose.yml, docker-compose.nvidia.yml, .env.example
  • Tuning: internal/database/postgres_tune.go, internal/database/postgres.go (disableUnconfiguredJIT), cmd/silo/main.go (maybeApplyPostgresTuning)
  • Connections setting: web/src/pages/admin-settings/InfrastructureSettings.tsx, internal/config/admin_settings.go
  • Search: web/src/pages/admin-settings/SearchStatusPanel.tsx, LibraryMetadataSettings.tsx, internal/catalog/search_provider.go, internal/taskmanager/tasks/catalog_search_index.go
  • Migrations: internal/database/migrate.go
  • api mode: cmd/silo/main.go mode checks, internal/config/playback_routing.go

Needs a hands-on check: that granting ALTER SYSTEM alone is enough for tuning on an external PostgreSQL. Tuning also calls pg_reload_conf(), which a non-superuser may need a separate grant for.

bun run test:docs  ℹ pass 8  ℹ fail 0
bun run build      104 page(s) built, Complete!
git diff --check   clean

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code (bash, git, gh), silo-docs and humanizer skills
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

Note

Add Docker deployment details to the server guides from the retired guide

  • Expands configuration.md with PostgreSQL tuning settings (POSTGRES_TUNE_PROFILE, POSTGRES_TUNE_MEMORY, POSTGRES_TUNE_CONNECTIONS, and others), automatic memory-source selection, and required privileges for tuning an external PostgreSQL server
  • Documents search index behavior in docker.md: automatic retry on failed builds, fallback to the old index or PostgreSQL, and automatic rebuilds when index-format settings change
  • Adds warnings about preserving MEDIA_CONTAINER_ROOT on existing installs, PostgreSQL locks after abandoned migrations, and pre-update disk space for table rewrites in updates.md
  • Covers transcode node setup: PROXY_PORT/TRANSCODE_PORT host ports, the /tmp/silo-transcode mount, multiple GPUs via NVIDIA_GPU_COUNT, and connection sizing across server and nodes
  • Redirects the native-build link in installation-options.md to the server repository's DEVELOPMENT.md

Macroscope summarized 464e8e8.

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a7f69ad1-64f9-419f-8af4-cbf91b3fe164
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-kody

silo-kody Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz zZebrahz assigned zZebrahz and unassigned zZebrahz Oct 10, 2026
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

@silo-kody

silo-kody Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz
zZebrahz merged commit d5d9840 into main Oct 16, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 464e8e80 Deployed Oct 16, 2026 by zZebrahz via teardown #82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant