N8N_Automation / Dockerfile
R1000's picture
Update Dockerfile
ac5fb5f verified
raw
history blame contribute delete
525 Bytes
# Use the official Node.js image as the base
#FROM node:18
# Set working directory
#WORKDIR /usr/src/app
# Install n8n globally
#RUN npm install -g n8n
# Set environment variables for n8n
#ENV N8N_PORT=7860
#ENV N8N_HOST="0.0.0.0"
#ENV N8N_BASIC_AUTH_ACTIVE=true
#ENV N8N_BASIC_AUTH_USER="admin"
#ENV N8N_BASIC_AUTH_PASSWORD="password"
# Expose the port for n8n
#EXPOSE 7860
# Start n8n
#CMD ["n8n"]
FROM docker.n8n.io/n8nio/n8n
ENV N8N_BASIC_AUTH_ACTIVE=true
ENV N8N_RUNNERS_ENABLED=true
ENV N8N_PORT=7860
EXPOSE 5678