using n8n in docker on Debian 12
docker run -it --rm --name n8n -p 5678:5678 -e N8N_SECURE_COOKIE=false -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n
so i put file inside /var/lib/docker/n8n_data (i see database there)
how do i access file here ? this is what i try, but cannot get the file
n8n
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
when i use path
/home/node/.n8n/igaming/history.txt
i get ERROR: Access to the file is not allowed. so file is there
file is readable
jan
4
As far as I know, do we block access to files in the .n8n
folder. Nobody should read from it or write to it inside of n8n generally anyway.
The proper way to access local files is to mount the folder in Docker.
So you would add another -v <LOCAL_FOLDER>:<FOLDER_IN_N8N>
For example, if you do:
-v /home/james/my-files:/james-files
Then the folder /home/james/my-files
on your host, would be accessible inside of n8n via /james-files
I hope that helps.
2 Likes
thanks, so i can add multiple volumes?
jan
6
Yes, you can add as many as you want.
That is probably not 100% correct; there is possibly some limit in Docker, but I do not think you would ever run into it.
1 Like
system
Closed
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.