Skip to content

Commit

Permalink
Add dotenv vars for all important config values
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Oct 19, 2024
1 parent 81f9108 commit 785fe5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Run `ddev describe` to list your project's services and their URLs.
To modify the build of the used n8n image for the container there are dotenv variables available.

- `N8N_TAG` - The used n8n image tag. Default is `latest`.
- `N8N_TIMEZONE` - The timezone of the n8n container. Default is `Europe/Berlin`.
- `N8N_BASIC_AUTH_ACTIVE` - Enable basic authentication. Default is `false`.
- `N8N_BASIC_AUTH_USER` - The basic authentication username. Default is `n8n`.
- `N8N_BASIC_AUTH_PASSWORD` - The basic authentication password. Default is `n8n`.
- `N8N_ENCRYPTION_KEY` - The encryption key for sensitive data. Default is `n8n`.

Use the ddev dotenv command to set these variables.

Expand Down
10 changes: 5 additions & 5 deletions docker-compose.n8n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ services:
volumes:
- ".:/mnt/ddev_config"
environment:
GENERIC_TIMEZONE: "Europe/Berlin"
N8N_BASIC_AUTH_ACTIVE: false
N8N_BASIC_AUTH_USER: "n8n"
N8N_BASIC_AUTH_PASSWORD: "n8n"
GENERIC_TIMEZONE: "${N8N_TIMEZONE:-Europe/Berlin}"
N8N_BASIC_AUTH_ACTIVE: "${N8N_BASIC_AUTH_ACTIVE:-false}"
N8N_BASIC_AUTH_USER: "${N8N_BASIC_AUTH_USER:-n8n}"
N8N_BASIC_AUTH_PASSWORD: "${N8N_BASIC_AUTH_PASSWORD:-n8n}"
N8N_HOST: "${DDEV_SITENAME}.ddev.site"
N8N_PORT: 5678
N8N_PROTOCOL: http
N8N_ENCRYPTION_KEY: "n8n"
N8N_ENCRYPTION_KEY: "${N8N_ENCRYPTION_KEY:-n8n}"
N8N_USER_FOLDER: "/mnt/ddev_config/n8n/data"
#N8N_LOG_LEVEL: debug
N8N_LOG_OUTPUT: "stdout"
Expand Down

0 comments on commit 785fe5f

Please sign in to comment.