Heuehneje commited on
Commit
21ebc58
·
verified ·
1 Parent(s): 6cf86f2

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -14,5 +14,13 @@ ENV N8N_BASIC_AUTH_ACTIVE=true
14
  ENV N8N_BASIC_AUTH_USER=${N8N_USER}
15
  ENV N8N_BASIC_AUTH_PASSWORD=${N8N_PASSWORD}
16
 
 
 
 
 
 
 
 
 
17
  # Set the entrypoint
18
  ENTRYPOINT ["n8n"]
 
14
  ENV N8N_BASIC_AUTH_USER=${N8N_USER}
15
  ENV N8N_BASIC_AUTH_PASSWORD=${N8N_PASSWORD}
16
 
17
+ # Add health check and debugging
18
+ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
19
+ CMD curl -f http://localhost:5678/healthz || exit 1
20
+
21
+ # Print environment variables for debugging
22
+ RUN echo "N8N_USER: ${N8N_USER}" && \
23
+ echo "N8N_PASSWORD: ${N8N_PASSWORD}"
24
+
25
  # Set the entrypoint
26
  ENTRYPOINT ["n8n"]