From 6869a795624d9f6456f7889ec9a45dfd2cbd6fe8 Mon Sep 17 00:00:00 2001 From: Jannik Kramer Date: Wed, 2 Jul 2025 19:19:55 +0200 Subject: [PATCH] adds n8n --- docker_compose_applications/n8n/compose.yaml | 21 +++++++++++++++++++ .../reverse-proxy/Caddyfile | 6 ++++++ .../hetzner/host_vars/cit-docker-host.yaml | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 docker_compose_applications/n8n/compose.yaml diff --git a/docker_compose_applications/n8n/compose.yaml b/docker_compose_applications/n8n/compose.yaml new file mode 100644 index 0000000..8f5079f --- /dev/null +++ b/docker_compose_applications/n8n/compose.yaml @@ -0,0 +1,21 @@ +# Links & Resources +# - https://n8n.io/ +# - https://github.com/n8n-io/n8n-hosting/blob/main/docker-caddy/docker-compose.yml + +services: + n8n: + image: docker.n8n.io/n8nio/n8n + container_name: n8n + restart: unless-stopped + ports: + - "127.0.0.1:5678:5678" + environment: + - GENERIC_TIMEZONE=Europe/Berlin + - N8N_HOST=n8n.consider-funding.de + - N8N_PORT=5678 + - N8N_PROTOCOL=https + - NODE_ENV=production + - WEBHOOK_URL=https://n8n.consider-funding.de/ + volumes: + - /ansible_docker_compose/project_data/n8n/data:/home/node/.n8n + - /ansible_docker_compose/project_data/n8n/files:/files diff --git a/docker_compose_applications/reverse-proxy/Caddyfile b/docker_compose_applications/reverse-proxy/Caddyfile index aeb2e2b..a36c226 100644 --- a/docker_compose_applications/reverse-proxy/Caddyfile +++ b/docker_compose_applications/reverse-proxy/Caddyfile @@ -1,3 +1,9 @@ pdf.consider-it.de { reverse_proxy 127.0.0.1:8080 } + +n8n.consider-funding.de { + reverse_proxy 127.0.0.1:5678 { + flush_interval -1 + } +} diff --git a/inventories/hetzner/host_vars/cit-docker-host.yaml b/inventories/hetzner/host_vars/cit-docker-host.yaml index f9ce545..77481a8 100644 --- a/inventories/hetzner/host_vars/cit-docker-host.yaml +++ b/inventories/hetzner/host_vars/cit-docker-host.yaml @@ -3,3 +3,5 @@ docker_compose__projects: files_directory: ../docker_compose_applications/reverse-proxy - name: stirling-pdf files_directory: ../docker_compose_applications/stirling-pdf + - name: n8n + files_directory: ../docker_compose_applications/n8n