n8n: add workflow automation at n8n.hidrago.click
- Docker Compose (port 5678) - nginx reverse proxy + SSL Let's Encrypt - systemd user service (n8n.service) - HTTPS accessible on https://n8n.hidrago.click
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# n8n — AI workflow automation
|
||||
# https://n8n.hidrago.click
|
||||
services:
|
||||
n8n:
|
||||
image: n8nio/n8n:latest
|
||||
container_name: n8n
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:5678:5678"
|
||||
volumes:
|
||||
- ./n8n-data:/home/node/.n8n
|
||||
environment:
|
||||
- N8N_HOST=n8n.hidrago.click
|
||||
- N8N_PROTOCOL=https
|
||||
- N8N_PORT=5678
|
||||
- WEBHOOK_URL=https://n8n.hidrago.click
|
||||
- N8N_SECURE_COOKIE=false
|
||||
# Basic auth pour l'accès web (optionnel, décommente si besoin)
|
||||
# - N8N_BASIC_AUTH_ACTIVE=true
|
||||
# - N8N_BASIC_AUTH_USER=admin
|
||||
# - N8N_BASIC_AUTH_PASSWORD=ton-mot-de-passe
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=n8n - AI workflow automation
|
||||
Documentation=https://docs.n8n.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/home/jerome/hermes-sites/n8n.hidrago.click
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
ExecReload=/usr/bin/docker compose restart
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
TimeoutStartSec=120
|
||||
TimeoutStopSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user