n8n Docker Scripts

Layers of snow representing three n8n Docker Scripts

gh.com/lotharschulz/n8n-docker-setup (codeberg.org/lotharschulz/n8n-docker-setup)

I experimented with running n8n using docker. Starting n8n with Docker is great documentation to get a local setup based on docker working. However, I missed options to setup and teardown the n8n docker.

Setup.sh isn’t blocking your terminal, while the n8n docker setup is. It’s a matter of taste to use the docker detached mode, however I like better.

I check and follow logs using monitoring.sh.

The n8n docker setup stores data in a n8n_data docker volume. Restarting from scratch requires to remove that volume. This and other IMHO useful details are available in teardown.sh that I could not find anywhere else.

Repository Files

  • setup.sh – Creates volume and starts n8n container
  • monitoring.sh – Views and follows container logs
  • teardown.sh – Stops container and optionally removes image/volume

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.