Files
docker-compose/n8n/docker-compose.yml
T
2026-03-19 22:05:45 +01:00

57 lines
1.6 KiB
YAML
Executable File

version: "3"
services:
n8n:
image: ${DOCKER_REGISTRY:-}n8nio/n8n:latest
container_name: n8n-main
ports:
- "5678:5678"
environment:
- N8N_HOST=n8n.sectorq.eu
- N8N_PORT=5678
- N8N_PROTOCOL=https
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=sth
- N8N_BASIC_AUTH_PASSWORD=pwd
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
- N8N_RUNNERS_AUTH_TOKEN=l4c1j4yd33Du5lo
- N8N_NATIVE_PYTHON_RUNNER=true
- N8N_GIT_NODE_ALLOW_LOCAL=true
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_SECURE_COOKIE=false
- WEBHOOK_URL=https://n8n.sectorq.eu
- NODES_EXCLUDE="[]"
- NODE_FUNCTION_ALLOW_EXTERNAL=caldav
- NODE_FUNCTION_ALLOW_BUILTIN=datetime
volumes:
- data:/home/node/.n8n
- files:/home/node/.n8n-files/
restart: ${RESTART:-unless-stopped}
stop_grace_period: 60s
labels:
homepage.container: n8n
homepage.description: Workflow management
homepage.group: Utils
homepage.href: https://${APPNAME}.sectorq.eu
homepage.icon: /icons/n8n.svg
homepage.name: n8n
homepage.server: my-docker
wud.watch: true
wud.watch.digest: true
task-runners:
image: n8nio/runners:latest
container_name: n8n-runners
environment:
N8N_RUNNERS_TASK_BROKER_URI: http://n8n-main:5679
N8N_RUNNERS_AUTH_TOKEN: l4c1j4yd33Du5lo
N8N_RUNNERS_STDLIB_ALLOW: "*"
N8N_RUNNERS_EXTERNAL_ALLOW: "*"
# etc.
depends_on:
- n8n
volumes:
data:
driver: local
files:
driver: local