From 9d9e92bab83c328f6e3fa863254e3e6139e783cb Mon Sep 17 00:00:00 2001 From: Sven Gottwald <2502366+svengo@users.noreply.github.com> Date: Tue, 6 Oct 2026 16:42:15 +0200 Subject: [PATCH] =?UTF-8?q?fix(compose):=20Refactor=20volume=20paths=20and?= =?UTF-8?q?=20add=20service=5Fcompleted=5Fsuccess=E2=80=A6=20(#8355)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(compose): Refactor volume paths and add service_completed_successfully The volume paths for the volume-permission-helper service have been updated and the command has been adjusted to reflect the new paths. Ensure that the volume-permission-helper service runs successfully before starting the rustfs service. Signed-off-by: Sven Gottwald <2502366+svengo@users.noreply.github.com> --- docker-compose-simple.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose-simple.yml b/docker-compose-simple.yml index 2574a50d4..72cef54b2 100644 --- a/docker-compose-simple.yml +++ b/docker-compose-simple.yml @@ -18,7 +18,8 @@ services: image: rustfs/rustfs:latest container_name: rustfs-server depends_on: - - volume-permission-helper + volume-permission-helper: + condition: service_completed_successfully security_opt: - "no-new-privileges:true" ports: @@ -41,7 +42,6 @@ services: # Keep strict disk topology checks enabled by default. # For local testing only, set `RUSTFS_UNSAFE_BYPASS_DISK_CHECK=true` explicitly. - RUSTFS_UNSAFE_BYPASS_DISK_CHECK=${RUSTFS_UNSAFE_BYPASS_DISK_CHECK:-false} - volumes: - rustfs_data_0:/data/rustfs0 - rustfs_data_1:/data/rustfs1 @@ -88,14 +88,14 @@ services: volume-permission-helper: image: alpine volumes: - - rustfs_data_0:/data0 - - rustfs_data_1:/data1 - - rustfs_data_2:/data2 - - rustfs_data_3:/data3 - - logs:/logs + - rustfs_data_0:/data/rustfs0 + - rustfs_data_1:/data/rustfs1 + - rustfs_data_2:/data/rustfs2 + - rustfs_data_3:/data/rustfs3 + - logs:/app/logs command: > sh -c " - chown -R 10001:10001 /data0 /data1 /data2 /data3 /logs && + chown -R 10001:10001 /data/rustfs0 /data/rustfs1 /data/rustfs2 /data/rustfs3 /app/logs && echo 'Volume Permissions fixed' && exit 0 "