Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Persist binary data to a Docker volume
N8N_DEFAULT_BINARY_DATA_MODE=filesystemsaves uploads to the container’s local disk.Unless that directory is persisted via a named volume, all files will vanish on every redeploy.
Recommended follow-up:
…and ensure the
n8nservice includesThis aligns with the team rule that all service data must be persisted in
./volumes/-mapped Docker volumes.🏁 Script executed:
Length of output: 207
🏁 Script executed:
Length of output: 1654
Persist n8n binary data via Docker volume
The
n8nservice currently writes uploads to the container’s filesystem (N8N_DEFAULT_BINARY_DATA_MODE=filesystem) but doesn’t mount any volume at/data/n8n, so all files will be lost on each redeploy.Apply these changes in
docker-compose.prod.yml:services: n8n: environment: - N8N_DEFAULT_BINARY_DATA_MODE=filesystem + - N8N_BINARY_DATA_STORAGE_PATH=/data/n8n volumes: + - n8n_data:/data/n8nEnsure your root-level volume definition binds into
./volumes/n8n_dataper project conventions:volumes: n8n_data: driver: local driver_opts: type: none o: bind - device: /data/n8n + device: ./volumes/n8n_dataThis guarantees that all binary uploads persist across deployments under
volumes/n8n_data.🤖 Prompt for AI Agents