See Troubleshoot email on a new Discourse install.
The issue is probably that your notification email address is not one that you have configured your mark server to send from.
But that doesn’t explain the “connection timed out” errors. That sounds like some docker network issue.