binary1ne commited on
Commit
2aeacf6
·
verified ·
1 Parent(s): c61754e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -1,14 +1,10 @@
1
- # Use the official n8n image as base
2
- FROM n8nio/n8n
3
 
4
- # Set environment variable to change the default port to 7860
5
- ENV PORT=7860
 
 
 
6
 
7
  # Expose the custom port
8
  EXPOSE 7860
9
-
10
- # Optionally you can override other env vars here
11
- ENV N8N_BASIC_AUTH_USER=admin
12
- ENV N8N_BASIC_AUTH_PASSWORD=secret
13
-
14
- # Default CMD is inherited from base image, which runs n8n
 
1
+ FROM n8nio/n8n:latest
 
2
 
3
+ # Configure n8n to run on port 7860 and listen on all interfaces
4
+ ENV N8N_PORT=7860 \
5
+ N8N_LISTEN_ADDRESS=0.0.0.0 \
6
+ N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
7
+ N8N_RUNNERS_ENABLED=true
8
 
9
  # Expose the custom port
10
  EXPOSE 7860