Repository navigation
docs: install and run Silo as one container - #326
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tainers Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e container Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
…snippet Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…evice Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…chable Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| 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 |
There was a problem hiding this comment.
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.ymlPrompt 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.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
|
Marked ready for review at the maintainer's request. Silo-Server/silo-server#3319 is still open, so merge this after it: until then, 🤖 Claude Code (claude-opus-5-5) |
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 thepostgresservice 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, withdocker-compose.advanced.ymlrunning the same image beside separate PostgreSQL, Redis, and Meilisearch containers. On main today (07c05cad6) the image is stillaio, andlatestis 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:
docker-compose.ymlon an old install's data now starts an empty database with setup open. Existing installs keep their layout with a separate-containers file (nowdocker-compose.advanced.yml), and moving into one container is a separatemigrate-compose-stackcommand.docker-compose.node.yml,docker-compose.node-access.yml, and the VA-API and NVIDIA overlays. Nodes now rundocker-compose.ymlwithMODE,DATABASE_URL,REDIS_URL, andNODE_URLin.env. The main server shares its database withENABLE_NODE_ACCESSand two commented port lines.latestand drops the-aiotags for new builds. It also fixes the-omnibusversion label that the brief flagged as a server bug, so that's no longer a follow-up. Its latest commit renamesdocker-compose.split.yml, which #3279 added, todocker-compose.advanced.yml. The pages use the new name and call it the advanced Compose file. I left out a note for anyone who setCOMPOSE_FILE=docker-compose.split.ymlin the day it was on main.Pages changed
docker run, and separate containers as starting pointsdocker run, separate containers, bundled PostgreSQL and Meilisearch, nodessilo auth local-login enablecommandsWhat changed on each page
Install Silo Server
docker-compose.ymlinline: 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..envholdsSECRET_KEY,MEDIA_ROOT,SILO_DATA_ROOT,PUID,PGID, andTZ.POSTGRES_PASSWORDis gone.docker compose pslists onlysilo. The page names the log line you get whenPUIDcan't read the media.Worth checking: the inline snippet uses the same
.envvariables as the repository's file, so other pages still apply. It leaves out the LXC/host/procmounts andcatalog-seeds; the Docker reference covers those.Requirements and installation options
docker runis for NAS and container managers, and the advanced Compose file,docker-compose.advanced.yml, is for separate containers.Set up transcoding and chapter previews
devicesand NVIDIAdeploylines to add or uncomment, replacing the overlay downloads. Existing overlay setups keep working.PUID, which the container adds to the device's group. A device owned by group0, as unprivileged LXC presents it, is skipped.Add and check transcode nodes
docker-compose.ymlwith the node settings from.env.example. A node doesn't start withoutNODE_URL,PORTsets the published port, and a transcode node setsSILO_STOP_GRACE_PERIOD=11m.Plan and test your backups
pg_dumpandpg_restore --listthroughdocker compose exec -T -u silo silo, with the oldpostgrescommands kept for separate containers. A server with its ownDATABASE_URLdumps that database with its own tools (Kody's finding on docs: add the single-container omnibus image to the install guide #308).config/siloholds what used to beartwork,plugins, andcompat, plus a SQLiteuserdb.s6-svc, then rundropdb,createdb, andpg_restore, chained with&&(Kody's finding), then restart. The note now saysdropdbalready 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
docker runupdate steps.--migrate-statusnow runs throughs6-envdirands6-setuidgid, the formdocs/admin-users-api.mdgives for the image. Rollback to an older build uses itsbuild-N-aiotag.PUID/PGID, since the image runs Silo as that account instead of root and takes over its directories.user:.docker-compose.advanced.yml.docker-compose.ymlon old data, which opens setup on an empty database.PUID/PGID, oldDATABASE_URL/REDIS_URL/Meilisearch lines, a pinnedSILO_IMAGE, overrides, node access.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
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 withSILO_OMNIBUS_IMAGE, orSILO_IMAGEwith separate containers, andbuild-N-aiofor older builds.PUID/PGIDdefaults (1000 in Compose, 911 otherwise), the unreadable-media warning, the reserved uids error, and the root start.config/siloownership changes only when the IDs change.docker rununless you setENABLE_REDIS=true.silo-proxy/silo-transcoderows and mentions are gone.psqlthroughdocker compose exec -u silo, restarting after tuning, and local settings inconf.d/10-local.conf.ENABLE_MEILISEARCH=true, with no admin steps. Turning it off returns search to PostgreSQL, andMEILI_UPGRADE_DBcovers version changes. The separate-container steps moved to a subsection. "Connect Meilisearch in.env" now says Redis is needed.SILO_STOP_GRACE_PERIOD, andSILO_SHUTDOWN_DELAY. Links from server-health and transcode-nodes are updated.Server configuration and dependencies
SILO_OMNIBUS_IMAGEandPUID/PGID, andPOSTGRES_PASSWORDis now scoped to separate containers and node access.DATABASE_URL/REDIS_URLin.env. The container skips the bundled service, and tuning stays off unless you set it. The override example is now scoped todocker-compose.advanced.yml./dev/shm, since it uses System V shared memory.docker compose restart silo, and the bundled database's budget is 50%.Overlap with other open docs PRs
docker.md(a paragraph after the LXC section) andtranscode-nodes.md(a new standalone-worker section). Its workerdocker runuses:latest, which this PR also treats as the single image.configuration.mdsections ("Environment configuration", "External PostgreSQL and Redis", "PostgreSQL tuning"), plusupdates.mdandtranscode-nodes.md. Itstranscode-nodes.mdtext still refers to thesilo-proxy/silo-transcodeexamples that #3279 removed, so whichever merges second needs a rebase there. I left node keys, source access, and standalone workers to docs: run a standalone transcode worker over HTTP or HTTPS #250 and docs: set up transcode nodes with node keys and source access #252.configuration.md("Live-update connections"), which this PR doesn't change.Left out on purpose
silo-troubleshooting-skill(see Follow-ups).FILE__<NAME>secrets, the optional/config/silo/.env, and aredis.confin/config/redis. No other page goes that deep.docker run. The source only shows the Composedeployblock, sodocker rungets only the/dev/driflag.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) and1ea7c758c(#3319 head), siloserver.org62cbcf0. 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.ymlandomnibus-build.yml.#308 tested its restore sequence (stop Silo with
s6-svc, thendropdb,createdb, andpg_restore --no-owner --role=silo) andexec -u silo psqlagainst an image built from silo-server#3118. This PR uses the same commands throughdocker compose exec.Needs a hands-on check:
docker runexample on a fresh host, after #3319 publisheslatest.--migrate-statusandsilo auth local-login enablethroughs6-envdiron a running container.Follow-ups
docker-compose.advanced.ymllink should resolve, and tag names or file comments can change in review.silo-troubleshooting-skill: add docs: add the single-container omnibus image to the install guide #308's agent move prompt and thebuild-N-aiorollback note that #3319 mentions.Risks
None identified. Documentation only.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Rewrite Silo install guide to run one omnibus container
Macroscope summarized 5b800a7.