homelab/services/n8n.yml
Samantha Atkins 9fd085420a Migrate to Proxmox homelab swarm stack definitions
Replace old AWS-oriented compose_files with updated service ymls for
the 3-node Proxmox cluster (pve, adder, game). Services now target
Docker Swarm on the VXLAN overlay (10.10.10.0/24).

New services: authentik, ghost (x3), mariadb
Updated: postgres, n8n, nats, fusionauth, monerod
Added: game node interfaces file for VXLAN config

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 22:15:39 -04:00

45 lines
1 KiB
YAML

version: '3.8'
# Deploy with:
# docker stack deploy -c n8n.yml n8n
#
# Runs on: pve-tools
services:
n8n:
image: n8nio/n8n:latest
environment:
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: postgres_postgres
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_DATABASE: n8n_db
DB_POSTGRESDB_USER: n8n_user
DB_POSTGRESDB_PASSWORD: ${N8N_DB_PASSWORD}
N8N_HOST: n8n.yourdomain.com
N8N_PORT: 5678
N8N_PROTOCOL: https
WEBHOOK_URL: https://n8n.yourdomain.com
GENERIC_TIMEZONE: UTC
# NATS connection for event-driven workflows
# Configure in n8n credentials UI after first boot
volumes:
- n8n_data:/home/node/.n8n
networks:
- overlay-net
deploy:
replicas: 1
placement:
constraints:
- node.hostname == pve-tools
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
volumes:
n8n_data:
networks:
overlay-net:
external: true
name: ${OVERLAY_NETWORK:-homelab-net}