Stacks from Dockhand

This commit is contained in:
2026-03-14 00:32:13 +01:00
parent 2d7608598c
commit c4005e0e4e
17 changed files with 778 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
services:
db:
image: postgres:18
container_name: n8n-DB
hostname: n8n-db
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "n8n", "-U", "n8nuser"]
timeout: 45s
interval: 10s
retries: 10
volumes:
- /volume1/docker/n8n/db:/var/lib/postgresql:rw
environment:
TZ: Europe/Zurich
POSTGRES_DB: n8n
POSTGRES_USER: n8nuser
POSTGRES_PASSWORD: n8npass
restart: on-failure:5
n8n:
image: n8nio/n8n:latest
container_name: n8n
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 5678 || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
hostname: n8n
user: 0:0
security_opt:
- no-new-privileges:true
ports:
- 5678:5678
volumes:
- /volume1/docker/n8n/data:/root/.n8n:rw
- /volume1/docker/n8n/files:/files:rw
environment:
N8N_HOST: n8n.mschwab.net
WEBHOOK_URL: https://n8n.mschwab.net
N8N_EDITOR_BASE_URL: https://n8n.mschwab.net
GENERIC_TIMEZONE: Europe/Zurich
TZ: Europe/Zurich
N8N_PORT: 5678
N8N_PROXY_HOPS: 4
N8N_ENCRYPTION_KEY: ZOmyQvEDgElilcPkqVxHZOZaBcckRXSBYPuyWGkULRHczUffyBZghUiZhYyfQYiE
N8N_PROTOCOL: https
NODE_ENV: production
N8N_DIAGNOSTICS_ENABLED: false
N8N_RUNNERS_ENABLED: true
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: true
N8N_RESTRICT_FILE_ACCESS_TO: /files
N8N_SECURE_COOKIE: true #or false if you want to use n8n without synology.me DDNS
DB_TYPE: postgresdb
DB_POSTGRESDB_DATABASE: n8n
DB_POSTGRESDB_HOST: n8n-db
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_USER: n8nuser
DB_POSTGRESDB_PASSWORD: n8npass
restart: on-failure:5
depends_on:
db:
condition: service_healthy