Skip to content

fix: use Redis 8 as the default image instead of Redis 7#4591

Open
ravindu0823 wants to merge 1 commit into
Dokploy:canaryfrom
ravindu0823:fix/redis-8-default-image
Open

fix: use Redis 8 as the default image instead of Redis 7#4591
ravindu0823 wants to merge 1 commit into
Dokploy:canaryfrom
ravindu0823:fix/redis-8-default-image

Conversation

@ravindu0823

Copy link
Copy Markdown

What

When adding a new database, leaving the Docker image blank for Redis created a container from redis:7 instead of Redis 8.

Root cause

apps/dokploy/components/dashboard/project/add-database.tsx defined an inline dockerImageDefaultPlaceholder map whose redis value was redis:7. On a blank create, this UI default is sent as the dockerImage, overriding the server schema (which already defaults to Redis 8). It also drove the input placeholder.

Fix

  • Extracted the default-image map into a pure, importable module apps/dokploy/components/dashboard/project/database-default-images.ts.
  • Changed the redis default to redis:8 (explicit colon-tag form, consistent with the other entries).
  • add-database.tsx now imports the map; both the default-used-on-create and the placeholder use the new value.

Test

Added apps/dokploy/__test__/utils/database-default-images.test.ts asserting the redis default is redis:8.

✓ __test__/utils/database-default-images.test.ts (1 test)
  ✓ uses redis 8 as the default redis image
Test Files  1 passed (1)
     Tests  1 passed (1)

Typecheck (pnpm --filter=dokploy run typecheck) is clean.

Fixes #4172

🤖 Generated with Claude Code

The add-database dialog defined an inline dockerImageDefaultPlaceholder
map whose redis value was redis:7. A blank create therefore sent
redis:7 even though the server schema already defaults to redis 8,
because the UI-provided value wins.

Extract the default-image map into a pure, importable module
(database-default-images.ts) and change the redis default to redis:8.
add-database.tsx now imports the map, and the value is unit-tested.

Fixes Dokploy#4172

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ravindu0823 ravindu0823 requested a review from Siumauricio as a code owner June 9, 2026 09:08
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redis 8 or latest as default instead of Redis 7

1 participant