File tree 3 files changed +26
-8
lines changed
3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,23 @@ Run `ddev describe` to list your project's services and their URLs.
15
15
16
16
## Configuration
17
17
18
+ ### Docker
19
+
20
+ To modify the build of the used n8n image for the container there are dotenv variables available.
21
+
22
+ - ` N8N_TAG ` - The used n8n image tag. Default is ` latest ` .
23
+ - ` N8N_TIMEZONE ` - The timezone of the n8n container. Default is ` Europe/Berlin ` .
24
+ - ` N8N_BASIC_AUTH_ACTIVE ` - Enable basic authentication. Default is ` false ` .
25
+ - ` N8N_BASIC_AUTH_USER ` - The basic authentication username. Default is ` n8n ` .
26
+ - ` N8N_BASIC_AUTH_PASSWORD ` - The basic authentication password. Default is ` n8n ` .
27
+ - ` N8N_ENCRYPTION_KEY ` - The encryption key for sensitive data. Default is ` n8n ` .
28
+
29
+ Use the ddev dotenv command to set these variables.
30
+
31
+ ``` bash
32
+ ddev dotenv set .ddev/.env.n8n --n8n-tag=1.50.0
33
+ ```
34
+
18
35
### n8n Settings
19
36
20
37
Settings are in general defined in the file ` .ddev/docker-compose.n8n.yaml ` via environment variables.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version: '3.6'
4
4
services :
5
5
n8n :
6
6
container_name : ddev-${DDEV_SITENAME}-n8n
7
- image : docker.n8n.io/n8nio/n8n:latest
7
+ image : docker.n8n.io/n8nio/n8n:${N8N_TAG:- latest}
8
8
networks : [default, ddev_default]
9
9
labels :
10
10
com.ddev.site-name : ${DDEV_SITENAME}
@@ -17,14 +17,14 @@ services:
17
17
volumes :
18
18
- " .:/mnt/ddev_config"
19
19
environment :
20
- GENERIC_TIMEZONE : " Europe/Berlin"
21
- N8N_BASIC_AUTH_ACTIVE : false
22
- N8N_BASIC_AUTH_USER : " n8n"
23
- N8N_BASIC_AUTH_PASSWORD : " n8n"
20
+ GENERIC_TIMEZONE : " ${N8N_TIMEZONE:- Europe/Berlin} "
21
+ N8N_BASIC_AUTH_ACTIVE : " ${N8N_BASIC_AUTH_ACTIVE:- false} "
22
+ N8N_BASIC_AUTH_USER : " ${N8N_BASIC_AUTH_USER:- n8n} "
23
+ N8N_BASIC_AUTH_PASSWORD : " ${N8N_BASIC_AUTH_PASSWORD:- n8n} "
24
24
N8N_HOST : " ${DDEV_SITENAME}.ddev.site"
25
25
N8N_PORT : 5678
26
26
N8N_PROTOCOL : http
27
- N8N_ENCRYPTION_KEY : " n8n"
27
+ N8N_ENCRYPTION_KEY : " ${N8N_ENCRYPTION_KEY:- n8n} "
28
28
N8N_USER_FOLDER : " /mnt/ddev_config/n8n/data"
29
29
# N8N_LOG_LEVEL: debug
30
30
N8N_LOG_OUTPUT : " stdout"
Original file line number Diff line number Diff line change @@ -25,19 +25,20 @@ teardown() {
25
25
@test " install from directory" {
26
26
set -eu -o pipefail
27
27
cd ${TESTDIR}
28
- echo " # ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
28
+ echo " # ddev add-on get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
29
29
ddev get ${DIR}
30
30
if ! ddev restart; then
31
31
ddev logs -s n8n
32
32
fi
33
33
health_checks
34
34
}
35
35
36
+ # bats test_tags=release
36
37
@test " install from release" {
37
38
set -eu -o pipefail
38
39
cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
39
40
echo " # ddev get netz98/ddev-n8n with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
40
- ddev get netz98/ddev-n8n
41
+ ddev add-on get netz98/ddev-n8n
41
42
if ! ddev restart > /dev/null; then
42
43
ddev logs -s n8n
43
44
fi
You can’t perform that action at this time.
0 commit comments