test2 / Dockerfile
Subham9126's picture
Update Dockerfile
7b2d1b4 verified
Raw
History Blame Contribute Delete
833 Bytes
ARG N8N_VERSION=stable
FROM docker.n8n.io/n8nio/n8n:$N8N_VERSION
USER node
# --- THE FIX: SHARED PORT CONFIG ---
ENV N8N_PORT=7860 \
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false \
# 1. Enable External Mode
N8N_RUNNERS_ENABLED=true \
N8N_RUNNERS_MODE=external \
# 2. Tell the Broker to sit INSIDE the main process (Port 0 or same port)
# Setting this to 7860 while N8N_PORT is 7860 causes the crash.
# We set the Broker to listen on the same webserver as the UI.
# 3. CRITICAL: Disable the local 'worker' so it doesn't fight for the port
# --- REST OF CONFIG ---
N8N_RUNNERS_AUTH_TOKEN=test_secret_123 \
GENERIC_TIMEZONE=Asia/Kolkata \
TZ=Asia/Kolkata \
N8N_ENCRYPTION_KEY=experimental_key_999 \
HOME=/home/node
WORKDIR /home/node
EXPOSE 7860
ENTRYPOINT ["tini", "--", "n8n"]