nodex-n8n / Dockerfile
adowu's picture
Update Dockerfile
d9bc616 verified
FROM node:latest
# Expose the necessary port
EXPOSE 7860
# Environment variables for n8n
ENV N8N_PORT=7860
ENV N8N_PROTOCOL=https
ENV NODE_ENV=production
ENV DB_TYPE=postgresdb
ENV DB_POSTGRESDB_DATABASE=verceldb
ENV DB_POSTGRESDB_HOST=ep-empty-moon-a4lj21gc-pooler.us-east-1.aws.neon.tech
ENV DB_POSTGRESDB_PORT=5432
ENV DB_POSTGRESDB_USER=default
ENV DB_POSTGRESDB_PASSWORD=nhtv4bs3uciE
ENV DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
ENV N8N_TEMPLATES_ENABLED=true
ENV N8N_EDITOR_BASE_URL=https://adowu-nodex-n8n.hf.space
ENV N8N_ENCRYPTION_KEY=haBkRKbtms9CfwxKs65Xz3uLlAw0PRI9ImWiq1DRTthQwhJxePNSZbfN+bPAoDR9
ENV N8N_HOST=0.0.0.0
ENV N8N_LISTEN_ADDRESS=0.0.0.0
ENV N8N_DISABLE_UI=false
ENV N8N_PREVIEW_MODE=false
ENV N8N_PERSONALIZATION_ENABLED=true
ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
ENV N8N_VERSION_NOTIFICATIONS_ENDPOINT=https://api.n8n.io/versions/
ENV N8N_VERSION_NOTIFICATIONS_INFO_URL=https://docs.n8n.io/getting-started/installation/updating.html
ENV N8N_DIAGNOSTICS_ENABLED=true
ENV N8N_DIAGNOSTICS_CONFIG_FRONTEND=1zPn9bgWPzlQc0p8Gj1uiK6DOTn;https://telemetry.n8n.io
ENV N8N_DIAGNOSTICS_CONFIG_BACKEND=1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io/v1/batch
ENV N8N_PUSH_BACKEND=websocket
ENV N8N_PUBLIC_API_DISABLED=false
ENV N8N_PUBLIC_API_ENDPOINT=api
ENV N8N_GRACEFUL_SHUTDOWN_TIMEOUT=30
ENV N8N_DEFAULT_LOCALE=en
ENV GENERIC_TIMEZONE=Europe/Warsaw
ENV N8N_ONBOARDING_FLOW_DISABLED=false
ENV N8N_WORKFLOW_TAGS_DISABLED=false
ENV N8N_WORKFLOW_CALLER_POLICY_DEFAULT_OPTION=workflowsFromSameOwner
# Install and start n8n
RUN npm install -g n8n@1.50.0
CMD ["n8n", "start", "--tunnel"]