derek-thomas commited on
Commit
a6b267d
·
verified ·
1 Parent(s): d8e9af0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official n8n Docker image as the base image
2
+ FROM docker.n8n.io/n8nio/n8n:latest
3
+
4
+ # Set environment variables for n8n
5
+ ENV GENERIC_TIMEZONE="Asia/Dubai" \
6
+ TZ="Asia/Dubai"
7
+ N8N_BASIC_AUTH_ACTIVE="true" \
8
+ N8N_BASIC_AUTH_USER="admin" \
9
+ N8N_BASIC_AUTH_PASSWORD=$(cat /run/secrets/N8N_AUTH_PASSWORD)
10
+
11
+ # Set the working directory
12
+ WORKDIR /data
13
+
14
+ # Expose port 5678 (default port for n8n)
15
+ EXPOSE 5678
16
+
17
+ # Set the command to run n8n
18
+ CMD ["n8n"]