From 912fafcca32f86d87bf019ed3a5e3772d3c841c9 Mon Sep 17 00:00:00 2001 From: Ralf Peschke Date: Fri, 22 Oct 2021 13:08:58 +0200 Subject: [PATCH 1/2] ClientIssue553: Add Testmailserver to openslides-dev-setup --- docker/docker-compose.dev.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 65a034f23..4f6529987 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -58,6 +58,15 @@ services: env_file: services.env environment: - OPENSLIDES_DEVELOPMENT=1 + - EMAIL_HOST=mailhog + - EMAIL_PORT=1025 + # - EMAIL_HOST_USER username + # - EMAIL_HOST_PASSWORD secret + # EMAIL_CONNECTION_SECURITY use NONE, STARTTLS or SSL/TLS + - EMAIL_CONNECTION_SECURITY=NONE + - EMAIL_TIMEOUT=5 + - EMAIL_ACCEPT_SELF_SIGNED_CERTIFICATE=false + - DEFAULT_FROM_EMAIL=noreply@example.com volumes: - ../openslides-backend/openslides_backend:/app/openslides_backend - ../openslides-backend/migrations:/app/migrations @@ -135,3 +144,12 @@ services: - autoupdate ports: - "8000:8000" + volumes: + - ../proxy/Caddyfile.dev:/etc/caddy/Caddyfile + + mailhog: + image: mailhog/mailhog + logging: + driver: 'none' # disable saving logs + ports: + - "8025:8025" # web ui to check mails manually From 60e4e537f8fc6c8f354b6f920c7015c8834f9116 Mon Sep 17 00:00:00 2001 From: Ralf Peschke Date: Tue, 2 Nov 2021 17:03:05 +0100 Subject: [PATCH 2/2] Remove caddy volume --- docker/docker-compose.dev.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 4f6529987..4a2a74c9d 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -144,8 +144,6 @@ services: - autoupdate ports: - "8000:8000" - volumes: - - ../proxy/Caddyfile.dev:/etc/caddy/Caddyfile mailhog: image: mailhog/mailhog