From 13d94cfc64443db2b4c24249bd839ae575cd60de Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 26 Oct 2024 00:34:58 -0700 Subject: [PATCH] Init n8n --- homelab/stacks/n8n/.env | 1 + homelab/stacks/n8n/docker-compose.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 homelab/stacks/n8n/.env create mode 100644 homelab/stacks/n8n/docker-compose.yml diff --git a/homelab/stacks/n8n/.env b/homelab/stacks/n8n/.env new file mode 100644 index 00000000..07bf2ed7 --- /dev/null +++ b/homelab/stacks/n8n/.env @@ -0,0 +1 @@ +FILE_STORAGE=/home/admin/data/n8n \ No newline at end of file diff --git a/homelab/stacks/n8n/docker-compose.yml b/homelab/stacks/n8n/docker-compose.yml new file mode 100644 index 00000000..afacdf51 --- /dev/null +++ b/homelab/stacks/n8n/docker-compose.yml @@ -0,0 +1,19 @@ +services: + n8n: + image: docker.n8n.io/n8nio/n8n:latest + container_name: n8n_n8n + restart: "unless-stopped" + networks: + web: + volumes: + - $FILE_STORAGE/n8n:/home/node/.n8n + labels: + - traefik.http.routers.n8n.rule=Host(`n8n.jafner.net`) + - traefik.http.routers.n8n.tls.certresolver=lets-encrypt + environment: + - N8N_EDITOR_BASE_URL=https://n8n.jafner.net/ + - WEBHOOK_URL=https://n8n.jafner.net/ + +networks: + web: + external: true \ No newline at end of file