Skip to content

Commit 00e07e6

Browse files
Update docker-compose.prod.yml to enhance n8n service configuration (#82)
- Added `restart: unless-stopped` to the n8n service for improved reliability. - Introduced environment variables `N8N_DEFAULT_BINARY_DATA_MODE` and `N8N_BINARY_DATA_STORAGE_PATH` to configure binary data handling. - Cleaned up unnecessary whitespace in the configuration file for better readability. Docs: https://docs.n8n.io/hosting/configuration/environment-variables/binary-data/ These changes enhance the stability and functionality of the n8n service in the production environment.
1 parent a6eaa04 commit 00e07e6

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docker-compose.prod.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
n8n:
3-
depends_on:
3+
restart: unless-stopped
4+
depends_on:
45
postgresql: !reset null
56
environment:
67
- WEBHOOK_URL=${N8N_WEBHOOK_URL:?N8N_WEBHOOK_URL is required}
@@ -19,6 +20,8 @@ services:
1920
- N8N_SMTP_SSL=${N8N_SMTP_SSL:-false}
2021
- N8N_SMTP_TLS=${N8N_SMTP_TLS:-true}
2122
- N8N_BLOCKED_NODES=n8n-nodes-base.executeCommand,n8n-nodes-base.ssh
23+
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
24+
- N8N_BINARY_DATA_STORAGE_PATH=/data/n8n/binaryData
2225
postgresql: !reset null
2326

2427
temporal:
@@ -61,36 +64,36 @@ services:
6164
- OAUTH2_PROXY_PROVIDER=google
6265
- OAUTH2_PROXY_CLIENT_ID=${GOOGLE_CLIENT_ID:?GOOGLE_CLIENT_ID is required}
6366
- OAUTH2_PROXY_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET:?GOOGLE_CLIENT_SECRET is required}
64-
67+
6568
# Email validation settings
6669
- OAUTH2_PROXY_EMAIL_DOMAINS=speedandfunction.com
67-
70+
6871
# Required settings
6972
- OAUTH2_PROXY_COOKIE_DOMAINS=.temporal.speedandfunction.com
7073
- OAUTH2_PROXY_WHITELIST_DOMAINS=.temporal.speedandfunction.com
7174
- OAUTH2_PROXY_HTTP_ADDRESS=0.0.0.0:8080
7275
- OAUTH2_PROXY_UPSTREAMS=http://temporal-ui:8080
7376
- OAUTH2_PROXY_REDIRECT_URL=${OAUTH2_PROXY_REDIRECT_URL:-https://temporal.speedandfunction.com/oauth2/callback}
7477
- OAUTH2_PROXY_COOKIE_SECRET=${OAUTH2_PROXY_COOKIE_SECRET:?OAUTH2_PROXY_COOKIE_SECRET is required}
75-
78+
7679
# Cookie settings
7780
- OAUTH2_PROXY_COOKIE_NAME=_oauth2_proxy
7881
- OAUTH2_PROXY_COOKIE_SECURE=true
7982
- OAUTH2_PROXY_COOKIE_HTTPONLY=true
8083
- OAUTH2_PROXY_COOKIE_SAMESITE=lax
8184
- OAUTH2_PROXY_COOKIE_REFRESH=1h
8285
- OAUTH2_PROXY_COOKIE_EXPIRE=168h
83-
86+
8487
# CSRF protection settings
8588
- OAUTH2_PROXY_CSRF_COOKIE_NAME=_oauth2_proxy_csrf
8689
- OAUTH2_PROXY_CSRF_COOKIE_SECURE=true
8790
- OAUTH2_PROXY_CSRF_COOKIE_DOMAIN=.temporal.speedandfunction.com
8891
- OAUTH2_PROXY_CSRF_COOKIE_HTTPONLY=true
8992
- OAUTH2_PROXY_CSRF_COOKIE_SAMESITE=lax
90-
93+
9194
# Debug settings
9295
- OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR=true
93-
96+
9497
# Logout settings
9598
- OAUTH2_PROXY_SIGN_OUT_URL=https://temporal.speedandfunction.com/oauth2/sign_out
9699
healthcheck:

0 commit comments

Comments
 (0)