tsdocode commited on
Commit
1626290
·
1 Parent(s): 68663d8

fix: clean comand

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -34
Dockerfile CHANGED
@@ -1,25 +1,21 @@
1
-
2
- # Verwende das offizielle n8n Docker-Image
3
  FROM tsdocode/n8n:facebook
4
 
5
- # Setze das Arbeitsverzeichnis auf /data
6
  WORKDIR /data
7
 
8
- # Stelle sicher, dass das Verzeichnis für persistente Daten existiert
9
  VOLUME /data
10
 
11
- # Sicherstellen, dass das Verzeichnis /data erstellt wird, falls es nicht gemountet ist
12
- RUN mkdir -p /data && chmod 777 /data
13
 
14
  ENV N8N_USER_FOLDER=/data
15
 
16
- # ENV N8N_EDITOR_BASEURL=https://${SUBDOMAIN}.${DOMAIN_NAME}
17
- # ENV N8N_CORS_ALLOW_ORIGIN=*
18
-
19
  ENV N8N_TRUST_PROXY=true
20
  ENV N8N_PROTOCOL=https
21
 
22
-
23
  ENV N8N_DIAGNOSTICS_ENABLED=true
24
  ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
25
  ENV N8N_TEMPLATES_ENABLED=true
@@ -35,9 +31,7 @@ ENV EXECUTIONS_DATA_SAVE_ON_SUCCESS=none
35
  ENV EXECUTIONS_DATA_SAVE_ON_PROGRESS=true
36
  ENV EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false
37
 
38
-
39
- # postgresql://postgres:[YOUR-PASSWORD]@db.zlftxtuzoskjjqlhvigp.supabase.co:5432/postgres
40
-
41
  ENV DB_TYPE=postgresdb
42
  ENV DB_POSTGRESDB_DATABASE=postgres
43
  ENV DB_POSTGRESDB_HOST=postgres
@@ -46,25 +40,5 @@ ENV DB_POSTGRESDB_USER=postgres
46
  ENV DB_POSTGRESDB_SCHEMA=public
47
  ENV DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
48
 
49
- # Exponiere den smtp Port für n8n
50
  EXPOSE 5678
51
-
52
- # Sicherstellen, dass der Ordner /data/uploads existiert und Schreibrechte für alle hat
53
- RUN ["/bin/sh", "-c", "mkdir -p /data && chmod 777 /data"]
54
-
55
- # Wechsel zu Root-Benutzer
56
- # USER root
57
-
58
- # Lade die Datei von Google Drive herunter und benenne sie um
59
- # RUN apk add --no-cache curl && \
60
- # curl -L -o /data/uploads/KnSupportMails.sqlite "https://drive.google.com/uc?export=download&id=1wX2ZNNOS_hjdLw_9Pj3Vt85bimEG_sOM"
61
-
62
- # Setze Schreibrechte für KnSupportMails.sqlite
63
- # RUN chmod 777 /data/uploads/KnSupportMails.sqlite
64
-
65
- # Zurück zum Standardbenutzer
66
- # USER node
67
-
68
- # Sicherstellen, dass n8n verfügbar ist, und n8n starten
69
- ENTRYPOINT ["tini", "--"]
70
- CMD ["n8n"]
 
1
+ # Use the official n8n Docker image
 
2
  FROM tsdocode/n8n:facebook
3
 
4
+ # Set the working directory to /data
5
  WORKDIR /data
6
 
7
+ # Make sure the directory for persistent data exists
8
  VOLUME /data
9
 
10
+ # Make sure the directory /data/uploads exists and has write permissions for all
11
+ RUN ["/bin/sh", "-c", "mkdir -p /data && chmod 777 /data"]
12
 
13
  ENV N8N_USER_FOLDER=/data
14
 
15
+ # Set the environment variables
 
 
16
  ENV N8N_TRUST_PROXY=true
17
  ENV N8N_PROTOCOL=https
18
 
 
19
  ENV N8N_DIAGNOSTICS_ENABLED=true
20
  ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
21
  ENV N8N_TEMPLATES_ENABLED=true
 
31
  ENV EXECUTIONS_DATA_SAVE_ON_PROGRESS=true
32
  ENV EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false
33
 
34
+ # Postgres database connection settings
 
 
35
  ENV DB_TYPE=postgresdb
36
  ENV DB_POSTGRESDB_DATABASE=postgres
37
  ENV DB_POSTGRESDB_HOST=postgres
 
40
  ENV DB_POSTGRESDB_SCHEMA=public
41
  ENV DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
42
 
43
+ # Expose the smtp port for n8n
44
  EXPOSE 5678