AnishaG0201 commited on
Commit
7546c29
·
verified ·
1 Parent(s): 68e6664

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official n8n Docker image as the base
2
+ FROM n8nio/n8n:latest
3
+
4
+ # Set necessary environment variables for n8n
5
+ ENV N8N_PORT=7860
6
+ ENV N8N_HOST="0.0.0.0"
7
+ ENV N8N_BASIC_AUTH_ACTIVE=true
8
+ ENV N8N_BASIC_AUTH_USER="admin"
9
+ ENV N8N_BASIC_AUTH_PASSWORD="password"
10
+
11
+ # Expose the port n8n will run on
12
+ EXPOSE 7860
13
+
14
+ # Start n8n
15
+ CMD ["n8n", "start"]