Compose-Examples/examples/n8n
2024-09-26 20:05:59 +02:00
..
.env Update .env 2024-02-22 12:22:37 +01:00
docker-compose.yml chore: fix linebreak 2024-09-26 19:40:57 +02:00
init-database.sh chore: fix init psql 2024-09-26 20:05:59 +02:00
README.md Update README.md 2024-02-22 12:29:00 +01:00

References

Notes

You have to pre-supply a database init script to properly setup the postgresql database beforehand.

Please follow these steps to do so:

# create new directory for database
mkdir -p /mnt/docker-volumes/n8n

# move the init file from this repo to the new location
mv init-database.sh /mnt/docker-volumes/n8n/.

# optional; adjust permissions
sudo chmod -R 777 /mnt/docker-volumes/n8n/

Afterwards, you can proceed spawning up the docker compose stack with:

docker compose up

Warning

Upon starting the stack you may see n8n errors regarding permissions:

[EACCES] Error Plugin: n8n: EACCES: permission denied, open '/home/node/.n8n/config'

You can fix those my running:

sudo chmod -R 777 /mnt/docker-volumes/n8n/database

and restarting the stack:

docker compose up --force-recreate