From 8d3c05bce643c6c909af96ca2c821469d65eecc9 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 27 Oct 2025 00:21:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20=20New=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stacks/apps/n8n/stack.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 stacks/apps/n8n/stack.yml diff --git a/stacks/apps/n8n/stack.yml b/stacks/apps/n8n/stack.yml new file mode 100644 index 0000000..1b01c51 --- /dev/null +++ b/stacks/apps/n8n/stack.yml @@ -0,0 +1,35 @@ +services: + n8n: + image: n8nio/n8n:latest + ports: + - 5678:5678 + networks: + - homelab + environment: + - N8N_HOST=n8n.bitfrost.me + - N8N_PORT=5678 + - N8N_PROTOCOL=https + - N8N_RUNNERS_ENABLED=true + - WEBHOOK_URL=https://n8n.bitfrost.me/ + - TZ=America/New_York + volumes: + - /home/doc/swarm/data/n8n:/home/node/.n8n + - /var/run/docker.sock:/var/run/docker.sock:ro + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == p0 + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 + resources: + limits: + memory: 2G + reservations: + memory: 512M + +networks: + homelab: + external: true