{"repo":"pkochanowicz/n8n-setup-docker","free":true,"listed":false,"github":"https://github.com/pkochanowicz/n8n-setup-docker","clone":"git clone https://github.com/pkochanowicz/n8n-setup-docker.git","description":"Fast, safe and smart setup for self-hosted n8n placed in a Docker container, ready to host and connect to postgresql database.","language":"Shell","stars":13,"topics":["automation","devops","docker","n8n","postgresql","bash","chatgpt","open-source","self-hosted","shell"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"--- 🔧 n8n-setup-docker: Secure, Custom, Ready for Action This repo delivers a production-friendly n8n stack using: - 🐳 Docker Swarm for container orchestration - 🔐 Docker Secrets for all sensitive env vars - ⚙️ Custom scripts to prep, deploy, and launch cleanly - 🧠 Readable, modifiable, highly hackable code If you want a secure, local-AND-remote deployable n8n instance with PostgreSQL and zero manual docker CLI poking… This is it. --- 🧠 Project Tree --- 🚀 Quickstart 1️⃣ Initialize Docker Swarm (if needed) --- 2️⃣ Add Your Secrets Drop plain-text secret files into the ./secrets/ in the project dir. Example: And the same for your DB creds. --- 3️⃣ Deploy It Like a Boss This will: 🏗️ Build your my-n8n:latest image 🔐 Create (or update) all Docker secrets 📦 Deploy a Swarm stack (n8n stack) with those secrets 🧠 Auto-detect your timezone and inject it too! --- 4️⃣ Check Docker logs: And that's it - n8n is set up and ready! In case of online deployment you'll be able to access your automations from anywhere! (login using the values from your secret files) --- 🔍 What's Actually Happening? Your container launches via: container run.sh : 🧪 Loads secrets from /run/secrets/… 🔁 Converts them into environment variables ✅ Tests PostgreSQL DB connection via psql 🎬 Runs n8n ONLY if everything is healthy 💡 Fail fast, fail clean — or don’t fail at all. --- ♻️ Rotating Secrets Secrets are immutable in Docker Swarm. To update: This deletes+recreates them automatically. --- 💾 Helpfu","default_branch":null,"files":null,"tree":[],"storefront":"/r/pkochanowicz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pkochanowicz/n8n-setup-docker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}