Files
docker-compose-files/n8nv2/n8n/compose.yaml
T
2025-12-22 13:22:11 +01:00

49 lines
1.4 KiB
YAML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
n8n:
image: n8nio/n8n:1.123.5
restart: unless-stopped
container_name: n8n
deploy:
resources:
limits:
memory: 4G
ports:
- 9678:5678
volumes:
- ./n8n-data:/home/node/.n8n
- /media/Daten/:/mnt/heimserver-daten
environment:
- DB_TYPE=mariadb
- DB_MYSQLDB_HOST=192.168.178.170
- DB_MYSQLDB_PORT=3306
- DB_MYSQLDB_DATABASE=n8n
- DB_MYSQLDB_USER=n8n
- DB_MYSQLDB_PASSWORD=dbpass
- 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 # IPAdresse des Containers / Host
# Postgresql
# - DB_TYPE=postgresdb
# - DB_POSTGRESDB_HOST=192.168.178.183
# - DB_POSTGRESDB_PORT=5432
# - DB_POSTGRESDB_DATABASE=n8n
# - DB_POSTGRESDB_USER=n8n
# - DB_POSTGRESDB_PASSWORD=dbpass
# Wenn auf Postgres migriert werden soll
# postgres:
# image: postgres:15-alpine
# environment:
# - POSTGRES_DB=n8n
# - POSTGRES_USER=n8n
# - POSTGRES_PASSWORD=dbpass
# ports:
# - 5432:5432
# volumes:
# - ./postgres-data:/var/lib/postgresql/data
networks: {}