File size: 1,034 Bytes
1626290
95aa5af
d9d7521
1626290
d9d7521
 
1626290
d9d7521
 
95aa5af
d9d7521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1626290
d9d7521
 
95aa5af
d9d7521
95aa5af
d9d7521
 
 
95aa5af
1626290
d9d7521
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Use the official n8n Docker image
FROM --platform=linux/amd64 tsdocode/n8n:facebook-amd

# Set the working directory to /data
WORKDIR /data

# Set the environment variables
ENV N8N_TRUST_PROXY=true
ENV N8N_PROTOCOL=https
ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
ENV N8N_DIAGNOSTICS_ENABLED=true
ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
ENV N8N_TEMPLATES_ENABLED=true

ENV WEBHOOK_URL=https://tsdocode-n8n.hf.space

ENV EXECUTIONS_DATA_PRUNE=true
ENV EXECUTIONS_DATA_MAX_AGE=168
ENV EXECUTIONS_DATA_PRUNE_MAX_COUNT=50000

ENV EXECUTIONS_DATA_SAVE_ON_ERROR=all
ENV EXECUTIONS_DATA_SAVE_ON_SUCCESS=none
ENV EXECUTIONS_DATA_SAVE_ON_PROGRESS=true
ENV EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false

# Postgres database connection settings
ENV DB_TYPE=postgresdb
ENV DB_POSTGRESDB_DATABASE=postgres
ENV DB_POSTGRESDB_HOST={POSTGRES_HOST}
ENV DB_POSTGRESDB_PORT=5432
ENV DB_POSTGRESDB_USER=${POSTGRES_USER}
ENV DB_POSTGRESDB_SCHEMA=public
ENV DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}


# Expose the smtp port for n8n
EXPOSE 5678