remove unneeded setting and removing port mapping to local host

This commit is contained in:
Ryan Toler
2026-03-28 16:25:41 +00:00
parent 23969ed04a
commit 25eb740809

View File

@@ -23,8 +23,8 @@ services:
n8n:
image: n8nio/n8n:2.13.2
restart: always
ports:
- "127.0.0.1:5678:5678"
#ports:
# - "127.0.0.1:5678:5678"
labels:
- traefik.enable=true
- traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
@@ -45,14 +45,13 @@ services:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- N8N_RUNNERS_ENABLED=true
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- TZ=${GENERIC_TIMEZONE}
volumes:
- ./n8n_data:/home/node/.n8n
- ./n8n_files:/files
- ../data/:/files
depends_on:
- ollama
- traefik