goldfishsoftwarelabs commited on
Commit
f2eff52
·
verified ·
1 Parent(s): 124d25b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -6,5 +6,11 @@ WORKDIR /data
6
  # Expose n8n's default port
7
  EXPOSE 5678
8
 
9
- # Start n8n
10
- CMD ["n8n", "start"]
 
 
 
 
 
 
 
6
  # Expose n8n's default port
7
  EXPOSE 5678
8
 
9
+ # Set environment variables to fix permissions warning and ensure proper execution
10
+ ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
11
+ ENV N8N_HOST=0.0.0.0
12
+ ENV N8N_PORT=5678
13
+ ENV N8N_PROTOCOL=http
14
+
15
+ # Ensure the n8n binary is used correctly
16
+ CMD ["/usr/local/bin/n8n", "start"]