generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.n8n.yaml
33 lines (33 loc) · 1.05 KB
/
docker-compose.n8n.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# DDEV n8n recipe file.
#ddev-generated
version: '3.6'
services:
n8n:
container_name: ddev-${DDEV_SITENAME}-n8n
image: docker.n8n.io/n8nio/n8n:${N8N_TAG:-latest}
networks: [default, ddev_default]
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
com.ddev.app-url: $DDEV_URL
restart: "no"
user: '$DDEV_UID:$DDEV_GID'
expose:
- "5678"
volumes:
- ".:/mnt/ddev_config"
environment:
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_ENCRYPTION_KEY:-n8n}"
N8N_USER_FOLDER: "/mnt/ddev_config/n8n/data"
#N8N_LOG_LEVEL: debug
N8N_LOG_OUTPUT: "stdout"
VIRTUAL_HOST: "$DDEV_HOSTNAME"
HTTP_EXPOSE: "5678:5678"
HTTPS_EXPOSE: "5679:5678"