Repository navigation
feat(docker): make the omnibus image the default Compose deployment - #3180
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
0b5b232 to
cffd9ad
Compare
4bfb76e to
7aeec24
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The default Compose service now runs Silo as Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
The Suggested correction: -Validation tasks: changes #1172–#1174 C1–C2 (the default deployment now runs Silo as a non-root PUID with GPU devices), #1177 C1 and #1178 C3 (single-node default); all cases not yet run
+Validation tasks: changes #1172–#1174 C1–C2 (not yet run; non-root PUID/GPU access); changes #1177 C1 and #1178 C3 (prior validation used the multi-container default; re-validation needed after merge)Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
02230be to
ed58b54
Compare
docker-compose.yml ran Silo, PostgreSQL, Redis, and Meilisearch as separate containers on the regular image. It now runs the omnibus image as one silo service, replacing docker-compose.omnibus.yml, and an existing install moves over on its next docker compose up. The file keeps one-shot services named postgres, redis, and meilisearch, so Compose replaces, and stops, the earlier stack's containers before Silo starts. The postgres one runs migrate-compose-stack, which the image already carries, with SILO_DATA_ROOT mounted and the .env settings it checks; Silo starts only once it succeeds. docker-compose.node-access.yml tells it that nodes will reach this server. Local development services move to docker-compose.dev.yml, with PostgreSQL and Redis bound to loopback, and scripts/silo-dev reaches the omnibus image's PostgreSQL inside the Silo container. The README, .env.example, and the architecture doc describe the new default and the move. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The migration refuses a .env that still sets SILO_SEARCH_PROVIDER=meilisearch for the earlier stack's Meilisearch when the bundled one is off. Pass the variable from .env alongside the other settings it checks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…note - The owner-recovery example ran `silo owner set` through a plain `docker compose exec`, which sees neither the s6 container environment holding DATABASE_URL nor the silo account that peer authentication requires. Give the command that loads the environment and drops to silo. - The README migration note now says to set PUID and PGID to an account that can read MEDIA_ROOT, since the earlier stack ran Silo as root. - Point node-drain at docker-compose.node.yml, label the collector snippet docker-compose.dev.yml, and drop references to the meilisearch and pgvector services the default Compose file no longer runs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Set REQUIRE_COMPOSE_MIGRATION on the silo service, so the documented `docker compose up -d --no-deps silo` update cannot bring Silo up on an empty database in front of an earlier multi-container install. Bring "Moving from the multi-container stack" up to date: the new guard and refusal, recovery with both markers present, the atomic done marker and syncs, refusals for a linked or non-directory Silo directory and for SILO_SEARCH_PROVIDER=meilisearch without a URL, the space check before a cross-device copy, and the set-aside copies in the closing log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t read Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tabase Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
420ce2e to
011e949
Compare
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:
|
The earlier Compose file set DATABASE_URL for Silo itself, so a remote one in .env never reached it. This file passes .env through, so the migration took that URL as Silo's database, left the cluster Silo actually used behind, and Silo came up on another database. Refuse that combination and say how to choose. Also generate the README's SECRET_KEY before writing it, so a failed openssl leaves .env unchanged instead of adding an empty key. 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:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce70d459a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The earlier stack always ran Redis, which Meilisearch search needs for its paging sessions. A Meilisearch chosen in the admin UI survives the move, but this Compose file starts Redis only when asked, so search would answer 503. Refuse the move until ENABLE_REDIS (or another Redis source) is set, and pass ENABLE_REDIS to the migration service. 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:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd74a98002
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
init-config starts the bundled Redis for SILO_SEARCH_PROVIDER=meilisearch, and any provider set in .env overrides the stored one, so the guard applies only when .env sets none. 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:
|
There was a problem hiding this comment.
Actionable comments posted: 3

Review info
-
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:
73046140-3942-47fb-8653-baa1effbe45f
Files selected for processing: 20-
.env.example.github/workflows/trusted-linux-ci.yml.silo-dev.env.exampleAGENTS.mdCONTRIBUTING.mdDEVELOPMENT.mdREADME.mddocker-compose.dev.ymldocker-compose.node-access.ymldocker-compose.nvidia.ymldocker-compose.omnibus.ymldocker-compose.vaapi.ymldocker-compose.ymldocs/admin-users-api.mddocs/architecture/node-drain.mddocs/architecture/observability.mddocs/architecture/omnibus-image.mdomnibus/Dockerfileomnibus/rootfs/etc/silo-omnibus/migrate-compose-stackscripts/silo-dev
Files with no reviewable changes: 3-
- docker-compose.nvidia.yml
- docker-compose.vaapi.yml
- docker-compose.omnibus.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
…e too init-postgres checked the migration marker only before creating a bundled cluster, so with DATABASE_URL set, `up --no-deps silo` started Silo before the migration moved its directories, and the later run set aside whatever Silo had written. Check the marker before the bundled PostgreSQL's early exit as well. Also tell silo-dev users whose .silo-dev.env still names the postgres service what changed, and note in DEVELOPMENT.md that the dev stack's new project and volumes do not reuse the earlier development database. 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:
|
Problem
Related issue: N/A
Validation tasks: changes #1172–#1174 C1–C2 (not yet run; the default deployment now runs Silo as a non-root
PUIDwith GPU devices); changes #1177 C1 and #1178 C3 (passed on the multi-container default; the single-node default now runs the omnibus image, so both need re-validation after merge)Running Silo with the README's quick start means four containers on the regular image, with Silo as root. The omnibus image (#3118) does the same job in one container with Silo as an ordinary account, and the previous PRs let it serve nodes and migrate an existing install. This PR makes it the default:
docker-compose.ymlruns the omnibus image, and an existing install moves over on its nextdocker compose up -d.Do not merge until
aio, published from a main build that includes the previous PRs, exists on both architectures and contains/etc/silo-omnibus/migrate-compose-stack. Merged earlier, this file would point existing installs at an image without the script: Compose would stop their old database container and Silo would not start.Last in the stack: #3118, the artwork identity fix, node support, the migration script, this.
Approach
docker-compose.ymlruns the omnibus image as onesiloservice (replacingdocker-compose.omnibus.yml). It keeps one-shot services namedpostgres,redis, andmeilisearch, so Compose replaces, and stops, the old stack's containers; Silo starts only after all three exit successfully. Thepostgresone runs the migration script withSILO_DATA_ROOTmounted and the.envsettings it checks, includingSILO_SEARCH_PROVIDER.silosetsREQUIRE_COMPOSE_MIGRATION, so a first update with--no-deps silostops with an explanation instead of creating an empty database in front of the old one.docker-compose.node-access.ymlnow layers ondocker-compose.ymland tells the migration that nodes will reach this server.lateststays on the regular image, so Watchtower and custom Compose users are not moved silently; the README,.env.example, and release notes describe omnibus as the Compose default.docker-compose.dev.yml(PostgreSQL and Redis bound to loopback), andscripts/silo-devreaches PostgreSQL inside the Silo container.docs/architecture/omnibus-image.mdgains "Moving from the multi-container stack". The README says to givePUIDread access to the media, since the old stack ran Silo as root, anddocs/admin-users-api.mdgives an owner-recovery command that works in the omnibus container. The user manual needs updating: docs: add the single-container omnibus image to the install guide siloserver.org#307 is out of date for this PR, and its replacement is drafted, to be filed with this PR's merge.Validation
docker compose configvalidates the default file alone, with the node-access overlay and a GPU overlay, anddocker-compose.node.ymlwith a GPU overlay.up -d --no-deps silorefused,up -dmigrated with the admin account intact, and a new install started and survived a--no-depsrecreate.docs/admin-users-api.mdran against a healthy omnibus container (arm64): it reached the database and set the Owner.make verify-shellcheck,make verify-actionlint,make verify-local-paths: pass.Evidence
Silo now runs as
PUID/PGIDinstead of root. Media that account can read plays as before; media only root could read becomes unreadable, whichinit-adduserwarns about at start and the README's migration note covers. A before-and-after playback capture of the same media is still to come from the final test. Test runs and results so far:Evidence: https://evidence.siloserver.org/r/silo-server/pr-3180/
Risks
docker compose up -d. The migration refuses rather than guesses, and the old directories stay usable with the earlier Compose file.docker-compose.override.ymlthat overrides the oldpostgres,redis, ormeilisearchservices merges into the one-shot services and can break them; Compose cannot check that before replacing the old containers. The failure is loud (thepostgresservice exits non-zero) and the README says to remove such overrides first.PUID; in unprivileged LXC containers the host must give passed-through GPU devices a group (documented in feat(docker): add an omnibus image with bundled PostgreSQL, Redis, and Meilisearch #3118).docker compose -f docker-compose.dev.yml up -d postgres redisfor local services; their dev database starts empty.Checklist
AI Disclosure
Note
Make the omnibus image the default Compose deployment
docker-compose.ymlnow runs the omnibus image with PUID/PGID, timezone, a/configmount, and optional bundled Redis and Meilisearch; the old docker-compose.omnibus.yml is removed and dev PostgreSQL/Redis move to docker-compose.dev.ymlpostgresservice (withredisandmeilisearchbridges) before Silo starts; see the migration guide in omnibus-image.mdDATABASE_URLconflicts with a detected earlier-stack cluster, or when a stored Meilisearch provider would lack Redis; it rewrites the stored provider topostgresfor oldmeilisearch-service URLsREQUIRE_COMPOSE_MIGRATIONis set and the migration marker is missing, including external-database setupssilo-devdoctor and psql now target thesiloservice by default and use the PostgreSQL socket inside the Silo container; docs and env examples are updated to matchREQUIRE_COMPOSE_MIGRATIONwill fail until the migration marker existsMacroscope summarized e62e34a.