From cf80f35b5c0e442167178368b43bd3dedc234ead Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 14 Aug 2025 07:40:25 +0100 Subject: [PATCH] feat(backend): bind uploads folder to local harddrive (#312) * bind uploads folder to local harddrive * updated backend README.md regarding permissions --- backend/README.md | 2 ++ docker-compose.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/backend/README.md b/backend/README.md index c0bbcfc9..74669a41 100644 --- a/backend/README.md +++ b/backend/README.md @@ -116,3 +116,5 @@ sudo chmod 777 -R ./data/ ``` This process is to be repeated whenever you restart the database docker container + +The same applies for the uploads and extension folder - ensure that the folder is writeable or file uploads will fail. diff --git a/docker-compose.yml b/docker-compose.yml index 58170d80..b81a5a3c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,6 +44,11 @@ services: condition: service_healthy ports: - 8055:8055 + volumes: + - ./data/uploads:/directus/uploads + # This is not compatible with the current setup with directus-sync as this + # extension is installed before the volume bind onto the docker container + # - ./data/extensions:/directus/extensions environment: PUBLIC_URL: 'http://localhost'