fix strart n8n
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 6m27s

This commit is contained in:
2026-01-25 14:18:24 +07:00
parent 33b47860f7
commit 089771a6e3
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ RUN apk add --no-cache \
netcat-openbsd \
nodejs \
npm \
su-exec \
&& npm install -g n8n@${N8N_VERSION} \
&& rm -rf /var/cache/apk/*

View File

@@ -22,4 +22,4 @@ iptables -t nat -A OUTPUT -p tcp -d 172.16.0.0/12 -j RETURN 2>/dev/null || true
iptables -t nat -A OUTPUT -p tcp -j REDIRECT --to-ports 12345 2>/dev/null || true
# Start n8n
exec su -c "n8n start" node
exec su-exec node n8n start