make a copy of .env (e.g. prod.env) and insert your smtp.
deploy the stack (e.g. for test environment):
env ENV=test HOST=test.agora-oegd.de docker stack deploy -c forum.yml forum --with-registry-auth
For connecting with keycloak, a PlugIn is installed and needs to be configured in discourse's admin gui.