diff --git a/n8nv2/compose.yaml b/n8nv2/compose.yaml new file mode 100755 index 0000000..2462ade --- /dev/null +++ b/n8nv2/compose.yaml @@ -0,0 +1,55 @@ +services: + n8n: + image: n8nio/n8n:next + restart: unless-stopped + container_name: n8nv2 + deploy: + resources: + limits: + memory: 1G + ports: + - 9789:5678 + volumes: + - ./n8n-data:/home/node/.n8n + - /media/Daten/:/mnt/heimserver-daten + environment: + - N8N_RUNNERS_ENABLED=true + - N8N_RUNNERS_MODE=external + - N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0 # Broker auf allen Interfaces + - N8N_RUNNERS_AUTH_TOKEN=IBhwCI2zP791vfzY9yHWWRLDsou4h4KB + - N8N_NATIVE_PYTHON_RUNNER=true + - N8N_BASIC_AUTH_ACTIVE=true + - N8N_BASIC_AUTH_USER=admin + - N8N_BASIC_AUTH_PASSWORD="OvTCSDZqpA#NfitX^dP1" + - GENERIC_TIMEZONE=Europe/Berlin + - N8N_SECURE_COOKIE=false + - N8N_HOST=192.168.178.183 + - DB_TYPE=postgresdb + - DB_POSTGRESDB_HOST=postgres # Service-Name statt IP + - DB_POSTGRESDB_PORT=5432 + - DB_POSTGRESDB_DATABASE=n8n + - DB_POSTGRESDB_USER=n8n + - DB_POSTGRESDB_PASSWORD=dbpass + networks: + - n8n-net + depends_on: + - postgres + postgres: + image: postgres:15-alpine + deploy: + resources: + limits: + memory: 256M + environment: + - POSTGRES_DB=n8n + - POSTGRES_USER=n8n + - POSTGRES_PASSWORD=dbpass + ports: + - 5432:5432 + volumes: + - ./postgres-data:/var/lib/postgresql/data + networks: + - n8n-net +networks: + n8n-net: + driver: bridge