tsdocode commited on
Commit
d9d7521
·
1 Parent(s): ccabb60

feat: add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +70 -0
Dockerfile ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
+
27
+ ENV WEBHOOK_URL=https://tsdocode-n8n.hf.space
28
+
29
+ ENV EXECUTIONS_DATA_PRUNE=true
30
+ ENV EXECUTIONS_DATA_MAX_AGE=168
31
+ ENV EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000
32
+
33
+ ENV EXECUTIONS_DATA_SAVE_ON_ERROR=all
34
+ 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
44
+ ENV DB_POSTGRESDB_PORT=5432
45
+ 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 mkdir -p /data/uploads && chmod 777 /data/uploads
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"]