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'