From b626d8a64e4aa0ee2e09d026bb295eaaab96ca35 Mon Sep 17 00:00:00 2001 From: Harshil Agrawal Date: Thu, 18 Feb 2021 16:23:25 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1Minor=20improvements=20(#424)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/server-setup.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/docs/reference/server-setup.md b/docs/reference/server-setup.md index 7ce19fe66..7095a8d0e 100644 --- a/docs/reference/server-setup.md +++ b/docs/reference/server-setup.md @@ -67,21 +67,7 @@ IP address: ### 5. Create docker-compose file -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 (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: - -```yaml - - /home//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//n8n-local-files`, respectively. +Create a `docker-compose.yml` file. Paste the following in the file. ```yaml version: "3" @@ -138,6 +124,19 @@ services: - ${DATA_FOLDER}/.n8n:/home/node/.n8n ``` +If you are planning on reading/writing local files with n8n (for example, by using the [*Write Binary File* node](../nodes/nodes-library/core-nodes/WriteBinaryFile/README.md)), 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: + +```yaml + - /home//n8n-local-files:/files +``` + +You will now be able to write files to the `/files` directory in n8n and they will appear on your server in either `/local-files` or `/home//n8n-local-files`, respectively. ### 6. Create `.env` file