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