mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
💄 Minor edits
This commit is contained in:
@@ -58,17 +58,21 @@ IP address: <IP_OF_YOUR_SERVER>
|
||||
|
||||
### 5. Create docker-compose file
|
||||
|
||||
Save this file as `docker-compose.yml`
|
||||
Save this file as `docker-compose.yml`.
|
||||
|
||||
Normally no changes should be needed, but if you are planning on reading/writing local files with n8n (e.g. by using the write binary files integration), you will need to configure a data directory for those files here. If you are running n8n as a root user, add this under ``volumes`` for the n8n service:
|
||||
Normally no changes should be needed, but if you are planning on reading/writing local files with n8n (for example, by using the *Write Binary File* node), you will need to configure a data directory for those files here. If you are running n8n as a root user, add this under `volumes` for the n8n service:
|
||||
|
||||
```yaml
|
||||
- /local-files:/files
|
||||
```
|
||||
|
||||
If you are running n8n as a non-root user, add this under ``volumes`` for the n8n service:
|
||||
If you are running n8n as a non-root user, add this under `volumes` for the n8n service:
|
||||
|
||||
- /home/<YOUR USERNAME>/n8n-local-files:/files``
|
||||
```yaml
|
||||
- /home/<YOUR USERNAME>/n8n-local-files:/files
|
||||
```
|
||||
|
||||
Then, you will be able to write files to the ``/files`` directory in n8n and they will appear on your server in either ``/local-files`` or ``/home/<YOUR USERNAME>/n8n-local-files``, respectively.
|
||||
Then, you will be able to write files to the `/files` directory in n8n and they will appear on your server in either `/local-files` or `/home/<YOUR USERNAME>/n8n-local-files`, respectively.
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
Reference in New Issue
Block a user