mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-29 12:05:04 +02:00
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
# Dev container overrides. Copy to `.env` (gitignored) to customize.
|
|
|
|
# Where n8n stores its local state (~/.n8n): encryption key, binary data,
|
|
# cache, and community nodes. NOTE: the workflow DB lives in Postgres, not here.
|
|
#
|
|
# Default (this variable unset): bind mount the host's ~/.n8n into the container,
|
|
# so the dev container shares the encryption key and credentials with a local
|
|
# n8n install. This relies on $HOME being set on the host (it is under WSL2 and
|
|
# on macOS/Linux, but NOT in native-Windows contexts, where Windows uses
|
|
# %USERPROFILE% instead).
|
|
#
|
|
# To use an isolated, cross-platform Docker named volume instead (recommended on
|
|
# native Windows without WSL2, and for Codespaces), set:
|
|
# N8N_DATA_MOUNT=n8n-data
|
|
#
|
|
# To bind a different host directory, set an ABSOLUTE path (avoid ${HOME} here;
|
|
# nested expansion in .env is unreliable across Compose versions):
|
|
# macOS: N8N_DATA_MOUNT=/Users/you/.n8n
|
|
# Linux: N8N_DATA_MOUNT=/home/you/.n8n
|
|
# Windows: N8N_DATA_MOUNT=C:\Users\you\.n8n
|
|
#
|
|
# N8N_DATA_MOUNT=
|