From ee112393177036f681939fc12c04043dd3dced26 Mon Sep 17 00:00:00 2001 From: Battleplus <3559424769@qq.com> Date: Fri, 21 Aug 2026 11:42:29 +0800 Subject: [PATCH] fix: update docker-compose.yml for Compose v5 compatibility - Remove obsolete 'version: 3.8' attribute - Move pids_limit from top level to deploy.resources.limits.pids - This fixes the 'can't set distinct values on pids_limit' error in Compose v5 Fixes #2091 Signed-off-by: Battleplus <3559424769@qq.com> --- docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1cd87ad93..6184b2683 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.8' # Shared configuration for all environments x-base-config: &base-config @@ -24,7 +23,6 @@ x-base-config: &base-config - ALL security_opt: - no-new-privileges:true - pids_limit: 512 # Read-only root filesystem; only these paths are writable (tmpfs). read_only: true tmpfs: @@ -39,6 +37,7 @@ x-base-config: &base-config resources: limits: memory: 4G + pids: 512 reservations: memory: 1G restart: unless-stopped