From 86c3aca360160a8309443afd8e00d8a51d8d285a Mon Sep 17 00:00:00 2001 From: jeanpaul Date: Wed, 14 Aug 2024 15:46:32 +0200 Subject: [PATCH] Add shared folder to docker-compose (#3) --- README.md | 12 +++++++++++- docker-compose.yml | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 85476a2..721be74 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,16 @@ This repo helps quickly bootstrap an n8n demo environment using docker-compose. - [Ollama](http://localhost:11434/) - [Qdrant](http://localhost:6333/dashboard) +### Local files + +When running the demo for the first time, Docker will create a folder `shared` +next to the `docker-compose.yml` file. You can add files to that, that will be +visible on the `/data/shared` folder inside the n8n container, and you can use +that, for example, with the Local File Trigger node. + ### Updating - Run `docker compose pull` to fetch all the latest images -- Run `docker compose create && docker compose up -d` to update and restart all the containers +- If you use Ollama, use either `docker compose --profile cpu pull` or + `docker compose --profile gpu pull` to pull the correct ollama images +- Run `docker compose create && docker compose up -d` to update and restart + all the containers diff --git a/docker-compose.yml b/docker-compose.yml index 383d574..c17d929 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -82,6 +82,7 @@ services: volumes: - n8n_storage:/home/node/.n8n - ./n8n/backup:/backup + - ./shared:/data/shared depends_on: postgres: condition: service_healthy