Hey @illusionandcards,
You would need to add the environment options to the command you have there so it would end up being something like…
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-e N8N_EMAIL_MODE=smtp \
-e N8N_SMTP_HOST=smtp.host \
-e [email protected] \
-e N8N_SMTP_PASS=SomePassword \
-e [email protected] \
-e WEBHOOK_URL=https://n8n.yourdomain.tld \
-v ~/.n8n:/home/node/.n8n \
docker.n8n.io/n8nio/n8n