Hi,
Im getting a permission error while writing a file in n8n.
I have n8n running on docker and here is my docker-compose.yaml file.
version: "3"
services:
n8n_5001:
image: n8nio/n8n:latest
ports:
- "5001:5001"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER
- N8N_BASIC_AUTH_PASSWORD
- N8N_HOST=${DOMAIN_NAME}
- N8N_PORT=5001
- N8N_PROTOCOL=https
- NODE_ENV=production
- N8N_PATH
- N8N_LISTEN_ADDRESS=0.0.0.0
- WEBHOOK_TUNNEL_URL=https://${DOMAIN_NAME}${N8N_PATH}
- VUE_APP_URL_BASE_API=https://${DOMAIN_NAME}${N8N_PATH}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/n8n_5001/.n8n_5001:/root/.n8n_5001
I’ve also given permission to the directory
drwxrwxrwx 3 1001 1001 4096 Nov 2 08:48 n8n_5001