Repository navigation
docs: mention Valkey under external Redis - #48
Conversation
Silo-Server/silo-server#1635 removed the server repository's Docker guide, including its "Valkey in place of Redis" section, so the manual became the only place this could live. Add it to the Docker page after Optional Meilisearch: the Redis-only support warning, the redis:// URL, the external-server route, the bundled-service override, and the data format caveat for existing installs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
The Valkey override was only named with -f on the two example commands, so a later plain `docker compose up -d`, such as an update, dropped it and recreated Redis on Valkey's data directory. Add it to COMPOSE_FILE in .env instead, as the GPU overlays are, and use plain commands. The existing-server route pointed at External PostgreSQL and Redis, which also swaps out the bundled PostgreSQL. Say to apply those steps to Redis only and keep DATABASE_URL and the bundled postgres service. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
|
||
| If you already set `COMPOSE_FILE`, add `valkey-override.yml` to that list instead of replacing it. Include any `docker-compose.override.yml` you use: with an explicit file list, Compose no longer loads that override on its own. | ||
|
|
||
| The base Compose file's `redis-cli ping` health check works with the official Valkey image. Check the merged configuration, then start the stack: |
There was a problem hiding this comment.
Healthcheck failure: the documented Valkey override inherits redis-cli ping, but valkey/valkey:alpine provides valkey-cli instead of redis-cli. Compose cannot start silo because its redis dependency requires service_healthy; override the healthcheck with valkey-cli ping.
Add a healthcheck to the Valkey override:
```yaml
services:
redis:
image: valkey/valkey:alpine
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
<sub>Talk to Kody by mentioning @kody</sub>
<sub>Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.</sub>
<!-- kody-codereview -->​
​
There was a problem hiding this comment.
The official image does ship redis-cli: in valkey/valkey:alpine (Valkey 9.1.2), /usr/local/bin/redis-cli is a link to valkey-cli, and running the health check's own command in a live container, docker exec <container> redis-cli ping, returns PONG. The inherited health check passes, so I've left the bundled override as is.
There was a problem hiding this comment.
You’re right. The official Valkey 9.1.2 image provides redis-cli as a link to valkey-cli, and your live-container check returned PONG. My health-check warning was incorrect; the documented override can inherit the existing check. No change is needed, and I haven’t changed anything.
An override can't remove a service, so "leave out the bundled redis service" left Silo starting Redis and waiting for it to become healthy. Give a tested override instead: it sets REDIS_URL, replaces Silo's dependencies with postgres alone (!override, Compose 2.24+), and moves the bundled redis service into a profile so it doesn't start. Both overrides now share the COMPOSE_FILE step, and the data format warning says it applies to switching the bundled service. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
| redis: | ||
| image: valkey/valkey:alpine |
There was a problem hiding this comment.
Healthcheck failure keeps the redis service unhealthy because the Valkey override inherits redis-cli ping, but valkey/valkey:alpine provides valkey-cli instead. Compose cannot start silo until its base dependency is healthy, so override the healthcheck with valkey-cli ping.
redis:
image: valkey/valkey:alpine
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
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.
Same point as the thread above: in valkey/valkey:alpine, redis-cli is a link to valkey-cli, and the base file's redis-cli ping health check returned PONG against a live container. No change needed.
There was a problem hiding this comment.
You’re right. The live-container check shows that redis-cli ping returns PONG with valkey/valkey:alpine, so the inherited health check works. My critical suggestion was incorrect; no health-check override is needed. Sorry for the false alarm.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Thanks for this, and for testing both overrides against the real Compose file. I pushed one commit on top, 1981361. It replaces the Docker section with a short mention under External PostgreSQL and Redis on the configuration page, reusing your wording for the The full procedure is still in silo-server#1512 for anyone who needs it. |
|
Preview removed after this pull request was closed. |
Problem
Related issue: #38
The manual doesn't say that Silo works with Valkey in place of Redis, or how to switch. The server repository's Docker guide covered it until Silo-Server/silo-server#1635 removed that guide, so right now there's nowhere to read it.
This is the Valkey item from #38. The other items there are left for separate PRs.
Approach
Add a "Valkey in place of Redis" section to the Docker page, after Optional Meilisearch. It follows #38's outline:
redis://URL and the lack of any Valkey-specific setting;REDIS_URL, drops Silo's dependency on the bundledrediswith!override(Compose 2.24+, which the manual already requires), and moves that service into a profile so it doesn't start;COMPOSE_FILEin.env, as the GPU overlays are, so later commands keep it;The text is adapted from the section I wrote for the server guide in Silo-Server/silo-server#1512.
Validation
Source reviewed. On silo-server
main, the bundledredisservice usesredis:alpine, mounts/data, and health-checks withredis-cli ping. The official Valkey image providesredis-cli, so the health check still passes after the image swap.With silo-server's
docker-compose.ymland.env.example,docker compose configresolvesvalkey/valkey:alpineforredisonceCOMPOSE_FILE=docker-compose.yml:valkey-override.ymlis set, andredis:alpinewithout it. With the explicit list set,docker-compose.override.ymlis not loaded automatically, as the section says. WithCOMPOSE_FILE=docker-compose.yml:valkey-external.yml, onlypostgresandsilostart, Silo waits only forpostgres, andREDIS_URLis the external server. Both YAML blocks were tested as they appear on the page.In a live
valkey/valkey:alpinecontainer (Valkey 9.1.2),redis-clilinks tovalkey-cliandredis-cli pingreturnsPONG.Risks
None identified. Documentation only.
Checklist
AI Disclosure
Note
Add Valkey-as-Redis option to server configuration docs
Adds a section to the Docker/server configuration guide explaining that Valkey can replace Redis by pointing
REDIS_URLat a Valkey server with aredis://URL. The docs note there is no Valkey-specific setting and that Silo is tested only against Redis, so Valkey support is as-is. Docs-only change in configuration.md.Macroscope summarized 1981361.