From 3d8ce47e425c75a7fe03839530652dc158c82493 Mon Sep 17 00:00:00 2001 From: leprekus Date: Wed, 8 Apr 2026 01:43:19 -0700 Subject: [PATCH] map /logs to the directory with correct access rights --- docs/installation/docker/index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/installation/docker/index.md b/docs/installation/docker/index.md index c27e4e2..2caf1c5 100644 --- a/docs/installation/docker/index.md +++ b/docs/installation/docker/index.md @@ -175,7 +175,7 @@ Running the command under root directory, docker compose --profile observability up -d ``` -Providing the necessary permissions. An initialization container is necessary to grant the correct access rights to rustfs using the `depends_on` keyword. In the example below the `rustfs_perms` service is added to the `docker-compose.yml` to handle this. +Providing the necessary permissions. An initialization container is necessary to grant the correct access rights to rustfs using the `depends_on` keyword. In the example below the `rustfs_perms` service is added to the `docker-compose.yml` to handle this. To ensure logs are persisted and accessible, we map the host log directory to the container's `/logs` path ``` services: @@ -192,6 +192,12 @@ Providing the necessary permissions. An initialization container is necessary to depends_on: rustfs_perms: condition: service_completed_successfully + volumes: + - /path/to_host_directory/volumes/data:/data + - /path/to_host_directory/volumes/logs:/logs + environment: + - RUSTFS_OBS_LOG_DIRECTORY=/logs + # ... other configurations ```