2023-02-23 00:42:41 +00:00
|
|
|
# References
|
|
|
|
|
|
|
|
- https://github.com/n8n-io/n8n
|
2024-02-22 11:29:00 +00:00
|
|
|
- https://github.com/n8n-io/n8n/tree/master/docker/compose/withPostgres
|
|
|
|
|
|
|
|
# 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
|
2024-09-26 20:41:00 +00:00
|
|
|
mkdir -p /mnt/docker-volumes/n8n/storage
|
2024-02-22 11:29:00 +00:00
|
|
|
|
|
|
|
# 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:
|
|
|
|
|
|
|
|
````
|
2024-09-26 20:41:56 +00:00
|
|
|
docker compose up -d
|
2024-02-22 11:29:00 +00:00
|
|
|
````
|