Skip to content

docs: install and run Silo as one container - #326

Merged
Quick104 merged 14 commits into
mainfrom
docs/omnibus-aio
Oct 31, 2026
Merged

Quick104 merged 14 commits into
mainfrom
docs/omnibus-aio

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #307

The manual still describes the old multi-container Compose stack, but silo-server has moved to one image that bundles PostgreSQL and Redis. The install steps no longer match the repository's docker-compose.yml, and the GPU and node overlay files the docs download are gone. Several commands also no longer work on the new image: docker compose run --rm silo --migrate-status, docker compose exec silo silo auth ..., and the postgres service backup commands. The manual also never tells a multi-container server what to do before its next update.

Merge after Silo-Server/silo-server#3319, which is still open. These pages describe the image after that change: one image under latest, build-N, and the commit SHA, with docker-compose.advanced.yml running the same image beside separate PostgreSQL, Redis, and Meilisearch containers. On main today (07c05cad6) the image is still aio, and latest is the image without bundled services.

This supersedes #308. Quick104's #308 was the starting point: its restore sequence, backup commands, PostgreSQL notes, and review threads went into this draft. The maintainer asked for a fresh draft against current main instead of edits to #308. I didn't push to #308 or comment on it.

What I chose and why

There's no separate page. The single image is now the default install, so readers look for it on the existing install, Docker, update, and backup pages, and each of those had to change anyway. A separate page would have duplicated the Docker reference.

The source changed in several ways after #308's premise and this thread's brief were written. I followed the source:

  • silo-server#3279 (merged 30 Oct) reversed the automatic move from #3179/#3180. Running docker-compose.yml on an old install's data now starts an empty database with setup open. Existing installs keep their layout with a separate-containers file (now docker-compose.advanced.yml), and moving into one container is a separate migrate-compose-stack command.
  • #3279 also removed docker-compose.node.yml, docker-compose.node-access.yml, and the VA-API and NVIDIA overlays. Nodes now run docker-compose.yml with MODE, DATABASE_URL, REDIS_URL, and NODE_URL in .env. The main server shares its database with ENABLE_NODE_ACCESS and two commented port lines.
  • #3319 (open) makes the single image latest and drops the -aio tags for new builds. It also fixes the -omnibus version label that the brief flagged as a server bug, so that's no longer a follow-up. Its latest commit renames docker-compose.split.yml, which #3279 added, to docker-compose.advanced.yml. The pages use the new name and call it the advanced Compose file. I left out a note for anyone who set COMPOSE_FILE=docker-compose.split.yml in the day it was on main.

Pages changed

Page Change Preview
Install Silo Server Install as one container from an inline Compose snippet Open
Requirements and installation options Single image, docker run, and separate containers as starting points Open
Set up transcoding and chapter previews GPU lines in the Compose file instead of overlay files; device groups Open
Add and check transcode nodes Which Compose file a node runs, and node access on the main server Open
Plan and test your backups Dump, restore, and directories for the single container Open
Update Silo safely Update commands, multi-container installs, moving into one container Open
Docker deployment reference Image and tags, what runs in the container, docker run, separate containers, bundled PostgreSQL and Meilisearch, nodes Open
Server configuration and dependencies Environment table, external PostgreSQL and Redis, tuning defaults for the single container Open
Storage and capacity Where local artwork lives on disk Open
Single sign-on Working form of the silo auth local-login enable commands Open
Check server health Link to the renamed Docker section Open

What changed on each page

Install Silo Server

  • Steps 2 to 4 now create a short docker-compose.yml inline: the image, stop timeout, NET_ADMIN, fixed container ports, Redis on, and the config, media, transcode, and download mounts. The page points to the repository's file for the GPU and node options.
  • .env holds SECRET_KEY, MEDIA_ROOT, SILO_DATA_ROOT, PUID, PGID, and TZ. POSTGRES_PASSWORD is gone.
  • docker compose ps lists only silo. The page names the log line you get when PUID can't read the media.

Worth checking: the inline snippet uses the same .env variables as the repository's file, so other pages still apply. It leaves out the LXC /host/proc mounts and catalog-seeds; the Docker reference covers those.

Requirements and installation options

  • One container is the default. docker run is for NAS and container managers, and the advanced Compose file, docker-compose.advanced.yml, is for separate containers.
  • Multi-container servers are sent to the new updates section.

Set up transcoding and chapter previews

  • devices and NVIDIA deploy lines to add or uncomment, replacing the overlay downloads. Existing overlay setups keep working.
  • Silo runs as PUID, which the container adds to the device's group. A device owned by group 0, as unprivileged LXC presents it, is skipped.

Add and check transcode nodes

  • A node's host runs docker-compose.yml with the node settings from .env.example. A node doesn't start without NODE_URL, PORT sets the published port, and a transcode node sets SILO_STOP_GRACE_PERIOD=11m.
  • The main server needs node access before nodes can reach its PostgreSQL and Redis.

Plan and test your backups

  • pg_dump and pg_restore --list through docker compose exec -T -u silo silo, with the old postgres commands kept for separate containers. A server with its own DATABASE_URL dumps that database with its own tools (Kody's finding on docs: add the single-container omnibus image to the install guide #308).
  • The directory table covers both layouts. config/silo holds what used to be artwork, plugins, and compat, plus a SQLite userdb.
  • New "Restore a dump into the container": stop Silo with s6-svc, then run dropdb, createdb, and pg_restore, chained with && (Kody's finding), then restart. The note now says dropdb already deleted the container's database, so a failed restore leaves it incomplete and Silo stopped. docs: add the single-container omnibus image to the install guide #308 said "the old data is untouched", which the earlier review found wrong.

Update Silo safely

  • The update commands are unchanged. The page explains that the single container restarts PostgreSQL and Redis with Silo, and gives docker run update steps.
  • --migrate-status now runs through s6-envdir and s6-setuidgid, the form docs/admin-users-api.md gives for the image. Rollback to an older build uses its build-N-aio tag.
  • New section "If your server runs PostgreSQL and Redis in their own containers":
    • Set PUID/PGID, since the image runs Silo as that account instead of root and takes over its directories.
    • Remove user:.
    • Keep the layout with docker-compose.advanced.yml.
    • A caution against starting docker-compose.yml on old data, which opens setup on an empty database.
  • New "Move into one container":
    • Preparation: the files, PUID/PGID, old DATABASE_URL/REDIS_URL/Meilisearch lines, a pinned SILO_IMAGE, overrides, node access.
    • The three commands from docs/architecture/omnibus-image.md, how to go back, and when to delete the old directories.

Worth checking: I left out the script's full list of refusals. It stops with a message that says what to change, so the page lists only what to prepare.

Docker deployment reference

  • Image and tags: latest, build-N, and the full commit SHA. The page used to say "short commit SHA", but the workflow publishes the full SHA. It also covers pinning with SILO_OMNIBUS_IMAGE, or SILO_IMAGE with separate containers, and build-N-aio for older builds.
  • "What runs in the container":
    • Each service's account and data directory.
    • PUID/PGID defaults (1000 in Compose, 911 otherwise), the unreadable-media warning, the reserved uids error, and the root start.
    • config/silo ownership changes only when the IDs change.
    • Redis is on in Compose and off with docker run unless you set ENABLE_REDIS=true.
  • New "Run with docker run". New "Run the services in separate containers" is the one place for the advanced Compose file: setup steps, its services, and a list of what works differently from the single container, each linking to the section that covers it.
  • Ports, data directories, and LXC: updated for the single container. The silo-proxy/silo-transcode rows and mentions are gone.
  • New "Bundled PostgreSQL":
    • psql through docker compose exec -u silo, restarting after tuning, and local settings in conf.d/10-local.conf.
    • Major-version upgrades by dump and restore, which the server's own error message points readers to.
  • Optional Meilisearch: ENABLE_MEILISEARCH=true, with no admin steps. Turning it off returns search to PostgreSQL, and MEILI_UPGRADE_DB covers version changes. The separate-container steps moved to a subsection. "Connect Meilisearch in .env" now says Redis is needed.
  • Hardware transcoding: the commented lines replace the overlay files.
  • "Distributed and external services" is now "Nodes and stop timeouts". It covers node access on the main server, SILO_STOP_GRACE_PERIOD, and SILO_SHUTDOWN_DELAY. Links from server-health and transcode-nodes are updated.

Server configuration and dependencies

  • The environment table adds SILO_OMNIBUS_IMAGE and PUID/PGID, and POSTGRES_PASSWORD is now scoped to separate containers and node access.
  • External PostgreSQL and Redis: with the default file, set DATABASE_URL/REDIS_URL in .env. The container skips the bundled service, and tuning stays off unless you set it. The override example is now scoped to docker-compose.advanced.yml.
  • Shared memory: PostgreSQL in Silo's container doesn't use /dev/shm, since it uses System V shared memory.
  • Tuning: restart with docker compose restart silo, and the bundled database's budget is 50%.

Overlap with other open docs PRs

Left out on purpose

  • The "Have an agent do it" prompt from docs: add the single-container omnibus image to the install guide #308. No other page has one. The earlier review suggested moving it to silo-troubleshooting-skill (see Follow-ups).
  • s6 service order, init script names, the migration script's markers and refusal list, and the collation rebuild details. These are internals, so the pages give the outcome and the message to expect.
  • FILE__<NAME> secrets, the optional /config/silo/.env, and a redis.conf in /config/redis. No other page goes that deep.
  • NVIDIA flags for docker run. The source only shows the Compose deploy block, so docker run gets only the /dev/dri flag.
  • The planned release tags (0.24.0, release candidates, :dev). The maintainer gave these as background, and they aren't in the source yet.

Evidence

Source reviewed, not tested on a live server or device:
silo-server 07c05cad6 (main) and 1ea7c758c (#3319 head), siloserver.org 62cbcf0. Server sources: docker-compose.yml, docker-compose.advanced.yml, .env.example, omnibus/ (Dockerfile, init-config, init-adduser, init-postgres, postgresql.omnibus.conf, migrate-compose-stack, svc-silo), docs/architecture/omnibus-image.md, docs/admin-users-api.md, .github/workflows/docker.yml and omnibus-build.yml.

#308 tested its restore sequence (stop Silo with s6-svc, then dropdb, createdb, and pg_restore --no-owner --role=silo) and exec -u silo psql against an image built from silo-server#3118. This PR uses the same commands through docker compose exec.

Needs a hands-on check:

  • The inline install snippet and the docker run example on a fresh host, after #3319 publishes latest.
  • The move commands on a multi-container install with an image that includes #3319.
  • --migrate-status and silo auth local-login enable through s6-envdir on a running container.
bun run test:docs   tests 8, pass 8, fail 0
bun run build       106 page(s) built; All internal links are valid.
git diff --check    clean

Follow-ups

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 (Claude Agent SDK) in T3 Code
  • Tool(s): silo-docs and humanizer skills, git, gh, bun
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; awaiting human review
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Rewrite Silo install guide to run one omnibus container

  • Reworks install-silo.md so users write a local Compose file instead of downloading the default files. The service runs the omnibus image with fixed internal ports, a read-only media mount, and persistent config and temporary-data mounts.
  • Replaces database-password setup with secret-key setup and adds guidance for PUID, PGID, timezone, media, and data-root.
  • Updates startup expectations: one healthy Silo service, with a bundled database and optional bundled Meilisearch.

Macroscope summarized 5b800a7.

@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

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

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e8ab133f-b8d8-4b6f-98f9-fb539853e1f8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@zZebrahz

Copy link
Copy Markdown
Contributor Author

Draft until Silo-Server/silo-server#3319 is merged into main. The docs describe that change, and its labels or defaults may still change in review.

@silo-kody

silo-kody Bot commented Oct 31, 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

@github-actions

github-actions Bot commented Oct 31, 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-triage silo-triage Bot added the documentation Improvements or additions to documentation label Oct 31, 2026
@silo-kody

silo-kody Bot commented Oct 31, 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

@silo-kody

silo-kody Bot commented Oct 31, 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

@silo-kody

silo-kody Bot commented Oct 31, 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

@silo-kody

silo-kody Bot commented Oct 31, 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

@silo-kody

silo-kody Bot commented Oct 31, 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

@silo-kody

silo-kody Bot commented Oct 31, 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

1. Follow steps 2 and 3 of [Install Silo Server](/docs/install), but in step 2 download the advanced file instead of creating `docker-compose.yml`:

```sh
curl -fSL https://raw.githubusercontent.com/Silo-Server/silo-server/main/docker-compose.advanced.yml -o docker-compose.advanced.yml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

HTTP 404 from the advanced Compose download URL blocks separate-container installation because the server repository provides docker-compose.split.yml, not docker-compose.advanced.yml. Retain docker-compose.split.yml throughout the download, configuration, and migration instructions until the server repository publishes the renamed file.

curl -fSL https://raw.githubusercontent.com/Silo-Server/silo-server/main/docker-compose.split.yml -o docker-compose.split.yml
Prompt for LLM

File src/content/docs/docs/running-a-server/docker.md:

Line 80:

HTTP 404 from the advanced Compose download URL blocks separate-container installation because the server repository provides docker-compose.split.yml, not docker-compose.advanced.yml. Retain docker-compose.split.yml throughout the download, configuration, and migration instructions until the server repository publishes the renamed file.

Suggested Code:

   curl -fSL https://raw.githubusercontent.com/Silo-Server/silo-server/main/docker-compose.split.yml -o docker-compose.split.yml

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changing this. The URL 404s on main today, as you say, but this PR is a draft until Silo-Server/silo-server#3319 merges, and that PR renames the file to docker-compose.advanced.yml (commit 1ea7c758c). These pages describe main after that merge, so switching back to docker-compose.split.yml would only need undoing. Before the PR leaves draft, I'll check that the URL resolves on main.

🤖 Claude Code (claude-opus-5-5)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed—my suggestion overlooked the explicit dependency on Silo-Server/silo-server#3319. Keeping docker-compose.advanced.yml is correct for the post-merge state this draft documents.

No change needed here. Checking that the URL resolves on main before marking this PR ready addresses the concern.

@zZebrahz
zZebrahz marked this pull request as ready for review October 31, 2026 17:03
@zZebrahz

Copy link
Copy Markdown
Contributor Author

Marked ready for review at the maintainer's request. Silo-Server/silo-server#3319 is still open, so merge this after it: until then, latest on main is the image without bundled services, and the docker-compose.advanced.yml link returns 404.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit 8ba40d5 into main Oct 31, 2026
5 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 5b800a79 Deployed Oct 31, 2026 by Quick104 via teardown #152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add the single-container omnibus image to the install guide

2 participants