mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-09 13:35:19 +00:00
fix(databases): update default Redis version from 7 to 8 (#4224)
Update Redis default image from redis:7 to redis:8 in: - packages/server/src/setup/redis-setup.ts (internal Redis setup) - packages/server/src/services/ai.ts (AI service template examples) - apps/dokploy/components/dashboard/project/add-database.tsx (UI default) Redis 8 provides better performance according to benchmarks while maintaining stability. Closes #4172.
This commit is contained in:
@@ -62,7 +62,7 @@ const dockerImageDefaultPlaceholder: Record<DbType, string> = {
|
|||||||
mariadb: "mariadb:11",
|
mariadb: "mariadb:11",
|
||||||
mysql: "mysql:8",
|
mysql: "mysql:8",
|
||||||
postgres: "postgres:18",
|
postgres: "postgres:18",
|
||||||
redis: "redis:7",
|
redis: "redis:8",
|
||||||
};
|
};
|
||||||
|
|
||||||
const databasesUserDefaultPlaceholder: Record<
|
const databasesUserDefaultPlaceholder: Record<
|
||||||
|
|||||||
@@ -198,12 +198,12 @@ export const suggestVariants = async ({
|
|||||||
1. ALWAYS use 'image:' field, NEVER use 'build:' field
|
1. ALWAYS use 'image:' field, NEVER use 'build:' field
|
||||||
2. NEVER use 'build: .' or any build directive - we don't have local Dockerfiles
|
2. NEVER use 'build: .' or any build directive - we don't have local Dockerfiles
|
||||||
3. Use images from Docker Hub or other public registries (e.g., docker.io, ghcr.io, quay.io)
|
3. Use images from Docker Hub or other public registries (e.g., docker.io, ghcr.io, quay.io)
|
||||||
4. For dependencies (databases, redis, etc.), use official images (e.g., postgres:16, redis:7, etc.)
|
4. For dependencies (databases, redis, etc.), use official images (e.g., postgres:16, redis:8, etc.)
|
||||||
5. Always specify image tags - avoid using 'latest' tag, use specific versions when possible
|
5. Always specify image tags - avoid using 'latest' tag, use specific versions when possible
|
||||||
6. Examples of correct image usage:
|
6. Examples of correct image usage:
|
||||||
- image: sendingtk/chatwoot:develop
|
- image: sendingtk/chatwoot:develop
|
||||||
- image: postgres:16-alpine
|
- image: postgres:16-alpine
|
||||||
- image: redis:7-alpine
|
- image: redis:8-alpine
|
||||||
7. Examples of INCORRECT usage (DO NOT USE):
|
7. Examples of INCORRECT usage (DO NOT USE):
|
||||||
- build: .
|
- build: .
|
||||||
- build: ./app
|
- build: ./app
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { docker } from "../constants";
|
|||||||
import { pullImage } from "../utils/docker/utils";
|
import { pullImage } from "../utils/docker/utils";
|
||||||
|
|
||||||
export const initializeRedis = async () => {
|
export const initializeRedis = async () => {
|
||||||
const imageName = "redis:7";
|
const imageName = "redis:8";
|
||||||
const containerName = "dokploy-redis";
|
const containerName = "dokploy-redis";
|
||||||
|
|
||||||
const settings: CreateServiceOptions = {
|
const settings: CreateServiceOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user