tsdocode commited on
Commit
95aa5af
·
1 Parent(s): 444bd51

fix: postgres connection string

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use the official n8n Docker image
2
- FROM --platform=linux/amd64 tsdocode/n8n:facebook-amd64
3
 
4
  # Set the working directory to /data
5
  WORKDIR /data
@@ -7,7 +7,7 @@ WORKDIR /data
7
  # Set the environment variables
8
  ENV N8N_TRUST_PROXY=true
9
  ENV N8N_PROTOCOL=https
10
-
11
  ENV N8N_DIAGNOSTICS_ENABLED=true
12
  ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
13
  ENV N8N_TEMPLATES_ENABLED=true
@@ -26,11 +26,12 @@ ENV EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false
26
  # Postgres database connection settings
27
  ENV DB_TYPE=postgresdb
28
  ENV DB_POSTGRESDB_DATABASE=postgres
29
- ENV DB_POSTGRESDB_HOST=postgres
30
  ENV DB_POSTGRESDB_PORT=5432
31
- ENV DB_POSTGRESDB_USER=postgres
32
  ENV DB_POSTGRESDB_SCHEMA=public
33
  ENV DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
34
 
 
35
  # Expose the smtp port for n8n
36
  EXPOSE 5678
 
1
  # Use the official n8n Docker image
2
+ FROM --platform=linux/amd64 tsdocode/n8n:facebook-amd
3
 
4
  # Set the working directory to /data
5
  WORKDIR /data
 
7
  # Set the environment variables
8
  ENV N8N_TRUST_PROXY=true
9
  ENV N8N_PROTOCOL=https
10
+ ENV N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
11
  ENV N8N_DIAGNOSTICS_ENABLED=true
12
  ENV N8N_VERSION_NOTIFICATIONS_ENABLED=true
13
  ENV N8N_TEMPLATES_ENABLED=true
 
26
  # Postgres database connection settings
27
  ENV DB_TYPE=postgresdb
28
  ENV DB_POSTGRESDB_DATABASE=postgres
29
+ ENV DB_POSTGRESDB_HOST={POSTGRES_HOST}
30
  ENV DB_POSTGRESDB_PORT=5432
31
+ ENV DB_POSTGRESDB_USER=${POSTGRES_USER}
32
  ENV DB_POSTGRESDB_SCHEMA=public
33
  ENV DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
34
 
35
+
36
  # Expose the smtp port for n8n
37
  EXPOSE 5678