[Ejabberd] Add new Dockerfile

This commit is contained in:
andryyy committed 2021-02-11 15:24:49 +01:00
1 parent f69f6b84f3
commit 9c1bd5c18b
4 files changed
+374

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php
require_once __DIR__."/vendor/autoload.php";
use Monolog\Logger;
use LeeSherwood\Ejabberd\AuthenticationService;
use LeeSherwood\Ejabberd\CommandExecutors\mailcowCommandExecutor;
$logger = new Logger('ejabberdAuth');
$stdoutHandler = new Monolog\Handler\StreamHandler('/var/www/authentication/auth.log', Logger::DEBUG);
$logger->pushHandler($stdoutHandler);
$executor = new mailcowCommandExecutor();
$application = new AuthenticationService($logger, $executor);
$application->run();