feat(backend): bind uploads folder to local harddrive (#312)

* bind uploads folder to local harddrive

* updated backend README.md regarding permissions
This commit is contained in:
Ulf Gebhardt 2025-08-14 07:40:25 +01:00 committed by GitHub
parent 9b2ac9f74f
commit cf80f35b5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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'