From b7dc2e435b9297000bbaeccbba25e862d8d86405 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 6 Nov 2026 12:44:00 +0100 Subject: [PATCH] feat(database): default new Redis databases to the Valkey image Change the standalone_redis image column default to valkey/valkey:9-alpine. Existing databases keep their current image. Update the API docs, OpenAPI specs and image helper text to name Valkey as the default and redis:8 as the Redis example. Also restyle the status badges and database image cards on the new resource page. --- .../Controllers/Api/DatabasesController.php | 4 +-- ...lkey_as_standalone_redis_default_image.php | 25 +++++++++++++++++ openapi.json | 4 +-- openapi.yaml | 4 +-- .../project/database/redis/general.blade.php | 2 +- .../livewire/project/new/select.blade.php | 28 +++++++++---------- 6 files changed, 46 insertions(+), 21 deletions(-) create mode 100644 database/migrations/2026_11_06_113843_set_valkey_as_standalone_redis_default_image.php diff --git a/app/Http/Controllers/Api/DatabasesController.php b/app/Http/Controllers/Api/DatabasesController.php index f00c899dfa..40d0c794eb 100644 --- a/app/Http/Controllers/Api/DatabasesController.php +++ b/app/Http/Controllers/Api/DatabasesController.php @@ -1731,7 +1731,7 @@ class DatabasesController extends Controller #[OA\Post( summary: 'Create (Redis / Valkey)', - description: 'Create a new Redis or Valkey database. Set image to a Valkey image (for example valkey/valkey:9-alpine) for Valkey.', + description: 'Create a new Redis or Valkey database. Valkey (valkey/valkey:9-alpine) is the default. Set image to a Redis image (for example redis:8) for Redis.', path: '/databases/redis', operationId: 'create-database-redis', security: [ @@ -1757,7 +1757,7 @@ class DatabasesController extends Controller 'redis_conf' => ['type' => 'string', 'description' => 'Redis conf'], 'name' => ['type' => 'string', 'description' => 'Name of the database'], 'description' => ['type' => 'string', 'description' => 'Description of the database'], - 'image' => ['type' => 'string', 'description' => 'Docker image of the database. Default: redis:7.2. For Valkey, use a Valkey image, for example valkey/valkey:9-alpine.'], + 'image' => ['type' => 'string', 'description' => 'Docker image of the database. Default: valkey/valkey:9-alpine. For Redis, use a Redis image, for example redis:8.'], 'is_public' => ['type' => 'boolean', 'description' => 'Is the database public?'], 'public_port' => ['type' => 'integer', 'description' => 'Public port of the database'], 'public_port_timeout' => ['type' => 'integer', 'description' => 'Public port timeout in seconds (default: 3600)'], diff --git a/database/migrations/2026_11_06_113843_set_valkey_as_standalone_redis_default_image.php b/database/migrations/2026_11_06_113843_set_valkey_as_standalone_redis_default_image.php new file mode 100644 index 0000000000..175d5c80c6 --- /dev/null +++ b/database/migrations/2026_11_06_113843_set_valkey_as_standalone_redis_default_image.php @@ -0,0 +1,25 @@ +string('image')->default('valkey/valkey:9-alpine')->change(); + }); + } + + public function down(): void + { + Schema::table('standalone_redis', function (Blueprint $table) { + $table->string('image')->default('redis:8')->change(); + }); + } +}; diff --git a/openapi.json b/openapi.json index e74467c402..3132be0ba5 100644 --- a/openapi.json +++ b/openapi.json @@ -9008,7 +9008,7 @@ "Databases" ], "summary": "Create (Redis \/ Valkey)", - "description": "Create a new Redis or Valkey database. Set image to a Valkey image (for example valkey\/valkey:9-alpine) for Valkey.", + "description": "Create a new Redis or Valkey database. Valkey (valkey\/valkey:9-alpine) is the default. Set image to a Redis image (for example redis:8) for Redis.", "operationId": "create-database-redis", "requestBody": { "description": "Database data", @@ -9059,7 +9059,7 @@ }, "image": { "type": "string", - "description": "Docker image of the database. Default: redis:7.2. For Valkey, use a Valkey image, for example valkey\/valkey:9-alpine." + "description": "Docker image of the database. Default: valkey\/valkey:9-alpine. For Redis, use a Redis image, for example redis:8." }, "is_public": { "type": "boolean", diff --git a/openapi.yaml b/openapi.yaml index dcb4c506cd..b4defa24b8 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5905,7 +5905,7 @@ paths: tags: - Databases summary: 'Create (Redis / Valkey)' - description: 'Create a new Redis or Valkey database. Set image to a Valkey image (for example valkey/valkey:9-alpine) for Valkey.' + description: 'Create a new Redis or Valkey database. Valkey (valkey/valkey:9-alpine) is the default. Set image to a Redis image (for example redis:8) for Redis.' operationId: create-database-redis requestBody: description: 'Database data' @@ -5946,7 +5946,7 @@ paths: description: 'Description of the database' image: type: string - description: 'Docker image of the database. Default: redis:7.2. For Valkey, use a Valkey image, for example valkey/valkey:9-alpine.' + description: 'Docker image of the database. Default: valkey/valkey:9-alpine. For Redis, use a Redis image, for example redis:8.' is_public: type: boolean description: 'Is the database public?' diff --git a/resources/views/livewire/project/database/redis/general.blade.php b/resources/views/livewire/project/database/redis/general.blade.php index 2026335a84..ee9a78b989 100644 --- a/resources/views/livewire/project/database/redis/general.blade.php +++ b/resources/views/livewire/project/database/redis/general.blade.php @@ -14,7 +14,7 @@
+ helper="Use a published Redis or Valkey image from Docker Hub, for example valkey/valkey:9-alpine or redis:8." />
diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php index b4645151b0..5bda4478bc 100644 --- a/resources/views/livewire/project/new/select.blade.php +++ b/resources/views/livewire/project/new/select.blade.php @@ -717,7 +717,7 @@ {{ $server->description ?: $server->ip }} - + @empty @if ($buildServers?->isEmpty() && ! $onlyBuildServerAvailable) @@ -744,7 +744,7 @@ Build-only servers cannot host resources. - + Settings @@ -788,7 +788,7 @@ Network: {{ $standaloneDocker->network }} - + @endforeach @endif @@ -803,7 +803,7 @@ needs bundled extensions.

-
@@ -826,7 +826,7 @@
-
@@ -847,7 +847,7 @@
-
@@ -868,7 +868,7 @@
-
@@ -889,7 +889,7 @@
-
@@ -912,7 +912,7 @@
-
@@ -933,7 +933,7 @@
-
@@ -965,7 +965,7 @@ and configuration.

-
@@ -987,12 +987,12 @@
-
-
Redis 7.2
+
Redis 8
The original in-memory key-value store.