From 88955b1d48c09871876e6d4da90faed260ea7541 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Del Cantoni Date: Mon, 26 Sep 2016 10:17:19 -0300 Subject: [PATCH] Implementação Parcial dos containers de smtp --- Vagrantfile | 6 +++++- sei/ConfiguracaoSEI.php | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 8e588a0..68ee1b7 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -79,6 +79,10 @@ SCRIPT # args: "-v /mnt/sei/arquivos:/var/sei/arquivos", # cmd: "true" + docker.run "sei_smtp", image: "munkyboy/fakesmtp", + daemonize: true, + args: "-p 2525:25" + # docker run -d --name sei_db -p 3306:3306 processoeletronico/mysql:latest docker.run "sei_db", image: "processoeletronico/mysql:latest", daemonize: true, @@ -97,7 +101,7 @@ SCRIPT # docker run -d --name sei_www -p 80:80 --link sei_solr:solr --link sei_db:db --link sei_jod:jod -v /mnt/sei/src:/mnt/sei/src processoeletronico/sei:latest docker.run "sei_www", image: "processoeletronico/sei:latest", daemonize: true, - args: "-p 80:80 --link sei_db:db --link sei_solr:solr --link sei_jod:jod -v /mnt/sei/src:/mnt/sei/src" + args: "-p 80:80 --link sei_db:db --link sei_solr:solr --link sei_jod:jod --link sei_smtp:smtp -v /mnt/sei/src:/mnt/sei/src" end # Limpeza de arquivos temporários criados durante o provisionamento do sistema diff --git a/sei/ConfiguracaoSEI.php b/sei/ConfiguracaoSEI.php index 06fea2a..58ec94d 100644 --- a/sei/ConfiguracaoSEI.php +++ b/sei/ConfiguracaoSEI.php @@ -108,9 +108,9 @@ class ConfiguracaoSEI extends InfraConfiguracao { ), 'InfraMail' => array( - 'Tipo' => '1', //1 = sendmail (neste caso não é necessário configurar os atributos abaixo), 2 = SMTP - 'Servidor' => '[Servidor E-Mail]', - 'Porta' => '25', + 'Tipo' => '2', //1 = sendmail (neste caso não é necessário configurar os atributos abaixo), 2 = SMTP + 'Servidor' => getenv("JOD_PORT_8080_TCP_ADDR"), + 'Porta' => getenv("JOD_PORT_8080_TCP_PORT"), 'Codificacao' => '8bit', //8bit, 7bit, binary, base64, quoted-printable 'Autenticar' => false, //se true então informar Usuario e Senha 'Usuario' => '', -- libgit2 0.21.2