diff --git a/README.md b/README.md index 824355a..983ed6e 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker-compose.n8n.yaml b/docker-compose.n8n.yaml index 96688d4..460e414 100644 --- a/docker-compose.n8n.yaml +++ b/docker-compose.n8n.yaml @@ -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"