Thanks Jon,
The n8n stanza of my docker compose looks like this
n8n:
image: n8nio/n8n
restart: always
ports:
- 5678:5678
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- N8N_EMAIL_MODE=${N8N_EMAIL_MODE}
- N8N_SMTP_HOST=${N8N_SMTP_HOST}
- N8N_SMTP_PORT=${N8N_SMTP_PORT}
- N8N_SMTP_USER=${N8N_SMTP_USER}
- N8N_SMPT_PASS=${N8N_SMTP_PASS}
- N8N_SMTP_SENDER=${N8N_SMTP_SENDER}
- N8N_SMTP_SSL=false
volumes:
- ${DATA_FOLDER}/.n8n:/home/node/.n8n
- ${DATA_FOLDER}/local_files:/files
Double checking the environment variables, they all exist inside the droplet (and inside the container):
root@ubuntu:~# echo $SUBDOMAIN
dREDACTEDa
root@ubuntu:~# echo $DOMAIN_NAME
tREDACTEDy
root@ubuntu:~# echo $N8N_EMAIL_MODE
smtp
root@ubuntu:~# echo $N8N_SMTP_HOST
smtp-relay.gmail.com
root@ubuntu:~# echo $N8N_SMTP_USER
nREDACTEDy
root@ubuntu:~# echo $N8N_SMTP_PASS
*REDACTEDy
root@ubuntu:~# echo $N8N_SMTP_SENDER
nREDACTEDy
I am not using any custom email templates (at the moment) does that matter? Do I still need to create a (empty) directory shared into the container for n8n to think that email is set up correctly?