help me my Read/Write Files from Disk is not able to write here my compose.yaml
services:
n8n:
image: hcharsh/n8n-custom
container_name: n8n
restart: always
ports:
- '5678:5678'
environment:
- 'N8N_EDITOR_BASE_URL=${SERVICE_URL_N8N}'
- 'WEBHOOK_URL=${SERVICE_URL_N8N}'
- 'N8N_HOST=${SERVICE_URL_N8N}'
- 'GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-Europe/Berlin}'
- 'TZ=${TZ:-Europe/Berlin}'
- DB_TYPE=postgresdb
- 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}'
- DB_POSTGRESDB_HOST=postgresql
- DB_POSTGRESDB_PORT=5432
- 'DB_POSTGRESDB_USER=${SERVICE_USER_POSTGRES}'
- DB_POSTGRESDB_SCHEMA=public
- 'DB_POSTGRESDB_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
- 'N8N_ENCRYPTION_KEY=${SERVICE_PASSWORD_ENCRYPTION}'
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
- N8N_RUNNERS_BROKER_PORT=5679
- 'N8N_RUNNERS_AUTH_TOKEN=${N8N_RUNNER_TOKEN}'
- N8N_NATIVE_PYTHON_RUNNER=true
- N8N_ALLOW_EXECUTE_COMMAND=true
- N8N_ENABLE_NODE_DEV=true
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
- N8N_TRUSTED_PROXIES=true
- 'NODES_EXCLUDE=[]'
- N8N_FILESYSTEM_PATH_WHITELIST=/videos
- N8N_BLOCK_ENV_ACCESS_IN_NODE=false
- N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=false
- N8N_RESTRICT_FILE_ACCESS_TO=
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
volumes:
- 'n8n_data:/home/node/.n8n'
- './videos:/home/node/.n8n-files'
- '/local-files:/files'
- './videos:/videos'
healthcheck:
test:
- CMD-SHELL
- 'wget -qO- http://127.0.0.1:5678/ > /dev/null || exit 1'
interval: 5s
timeout: 20s
retries: 10
depends_on:
postgresql:
condition: service_healthy
task-runners:
image: 'hcharsh/n8n-runner-custom:latest'
container_name: n8n-runners
restart: always
environment:
- 'N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5679'
- 'N8N_RUNNERS_AUTH_TOKEN=${N8N_RUNNER_TOKEN}'
- N8N_NATIVE_PYTHON_RUNNER=true
- 'GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-Europe/Berlin}'
- 'TZ=${TZ:-Europe/Berlin}'
- N8N_ALLOW_EXECUTE_COMMAND=true
- N8N_FILESYSTEM_PATH_WHITELIST=/videos
- N8N_BLOCK_ENV_ACCESS_IN_NODE=false
- N8N_RESTRICT_FILE_ACCESS_TO=
- N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=false
volumes:
- './videos:/home/node/.n8n-files'
depends_on:
n8n:
condition: service_healthy
healthcheck:
test:
- CMD-SHELL
- 'pgrep -f task-runner > /dev/null || exit 1'
interval: 10s
timeout: 10s
retries: 5
postgresql:
image: 'postgres:16-alpine'
container_name: n8n-postgres
restart: always
volumes:
- 'postgresql_data:/var/lib/postgresql/data'
environment:
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
- 'POSTGRES_DB=${POSTGRES_DB:-n8n}'
healthcheck:
test:
- CMD-SHELL
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
interval: 5s
timeout: 20s
retries: 10
volumes:
n8n_data:
external: true
postgresql_data: null
find solutions is by using the
search function at the upper right.
If your question hasn’t been asked before, please follow the template below. Skip the questions that are not relevant to you. →
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
