From 3fe71ab7dd5735c57ececd4c686329b323ae100d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= <134175+panzi@users.noreply.github.com> Date: Thu, 20 Nov 2025 03:14:56 +0100 Subject: [PATCH] Use array syntax for commands in docker-compose-base.yml (#11391) Use array syntax in order to prevent parameter quoting issues. This also runs the command directly without a bash process, which means signals (like SIGTERM) will be delivered directly to the server process. Fixes issue #11390 ### What problem does this PR solve? `${REDIS_PASSWORD}` was not passed correctly, meaning if it was unset or contains spaces (or shell code!) it was interpreted wrongly. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- docker/docker-compose-base.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose-base.yml b/docker/docker-compose-base.yml index 05e99e4b2..55496c0ca 100644 --- a/docker/docker-compose-base.yml +++ b/docker/docker-compose-base.yml @@ -179,7 +179,7 @@ services: minio: image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z - command: server --console-address ":9001" /data + command: ["server", "--console-address", ":9001", "/data"] ports: - ${MINIO_PORT}:9000 - ${MINIO_CONSOLE_PORT}:9001 @@ -201,7 +201,7 @@ services: redis: # swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/valkey/valkey:8 image: valkey/valkey:8 - command: redis-server --requirepass ${REDIS_PASSWORD} --maxmemory 128mb --maxmemory-policy allkeys-lru + command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}", "--maxmemory", "128mb", "--maxmemory-policy", "allkeys-lru"] env_file: .env ports: - ${REDIS_PORT}:6379