Skip to content

docs: mention Valkey under external Redis - #48

Merged
zZebrahz merged 5 commits into
Silo-Server:mainfrom
Tobechukwu-Njoku:docs/valkey-in-place-of-redis
Sep 30, 2026
Merged

zZebrahz merged 5 commits into
Silo-Server:mainfrom
Tobechukwu-Njoku:docs/valkey-in-place-of-redis

Conversation

@Tobechukwu-Njoku

@Tobechukwu-Njoku Tobechukwu-Njoku commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • the support warning, quoted as given, as a caution callout like the manual's other warnings;
  • the redis:// URL and the lack of any Valkey-specific setting;
  • an override for an existing Valkey server that keeps the bundled PostgreSQL: it sets REDIS_URL, drops Silo's dependency on the bundled redis with !override (Compose 2.24+, which the manual already requires), and moves that service into a profile so it doesn't start;
  • the bundled-service override for a new install;
  • adding either override to COMPOSE_FILE in .env, as the GPU overlays are, so later commands keep it;
  • the data format caveat for an existing install.

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 bundled redis service uses redis:alpine, mounts /data, and health-checks with redis-cli ping. The official Valkey image provides redis-cli, so the health check still passes after the image swap.

With silo-server's docker-compose.yml and .env.example, docker compose config resolves valkey/valkey:alpine for redis once COMPOSE_FILE=docker-compose.yml:valkey-override.yml is set, and redis:alpine without it. With the explicit list set, docker-compose.override.yml is not loaded automatically, as the section says. With COMPOSE_FILE=docker-compose.yml:valkey-external.yml, only postgres and silo start, Silo waits only for postgres, and REDIS_URL is the external server. Both YAML blocks were tested as they appear on the page.

In a live valkey/valkey:alpine container (Valkey 9.1.2), redis-cli links to valkey-cli and redis-cli ping returns PONG.

$ bun run test:docs
ℹ tests 8  ℹ pass 8  ℹ fail 0
$ bun run build
[build] Complete!

Risks

None identified. Documentation only.

Checklist

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

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_URL at a Valkey server with a redis:// 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.

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]>
@coderabbitai

coderabbitai Bot commented Sep 29, 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: b8d910f3-c059-4920-9a5d-3aafd64550cc


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.

@kody-ai

kody-ai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

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]>
@kody-ai

kody-ai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.


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:

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 high

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 -->&#8203;
&#8203;

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.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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]>
@kody-ai

kody-ai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

Comment on lines +104 to +105
redis:
image: valkey/valkey:alpine

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 critical

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.

​

​

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.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@kody-ai

kody-ai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@zZebrahz zZebrahz changed the title docs: add Valkey in place of Redis to the Docker guide docs: mention Valkey under external Redis Sep 30, 2026
@zZebrahz

Copy link
Copy Markdown
Contributor

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 redis:// URL and the as-is note from #38. The manual only covers setups Silo is tested with, and no other page walks through an untested alternative. A full procedure would read as supported despite the caution, and nobody would notice if Valkey and Silo drifted apart. I've retitled the PR to match.

The full procedure is still in silo-server#1512 for anyone who needs it.

@zZebrahz
zZebrahz merged commit bfe4581 into Silo-Server:main Sep 30, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

Preview removed after this pull request was closed.

This branch was previously deployed

1 inactive deployment
Preview — 19813619 Deployed Sep 30, 2026 by zZebrahz via teardown #24
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.

2 participants