Add shared folder to docker-compose (#3)

This commit is contained in:
jeanpaul
2024-08-14 15:46:32 +02:00
committed by GitHub
parent c1ee388c67
commit 86c3aca360
2 changed files with 12 additions and 1 deletions

View File

@@ -23,6 +23,16 @@ This repo helps quickly bootstrap an n8n demo environment using docker-compose.
- [Ollama](http://localhost:11434/) - [Ollama](http://localhost:11434/)
- [Qdrant](http://localhost:6333/dashboard) - [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 ### Updating
- Run `docker compose pull` to fetch all the latest images - 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

View File

@@ -82,6 +82,7 @@ services:
volumes: volumes:
- n8n_storage:/home/node/.n8n - n8n_storage:/home/node/.n8n
- ./n8n/backup:/backup - ./n8n/backup:/backup
- ./shared:/data/shared
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy