From a25a7ce39fea6560e310d80893478d81e3f97dcd Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 13 Sep 2024 16:22:59 +0530 Subject: [PATCH] feat&fix: use mailpit --- .woodpecker.yml | 8 ++++++++ docker-compose-dev-deps.yml | 15 ++++++++------- utils/db-migrations/Cargo.toml | 1 - 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5b82ebd..ea8c88d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -90,3 +90,11 @@ services: environment: - MEILI_ENV=development - MEILI_MASTER_KEY=5c8eb5f46c148884fb64da09be211a18347fbba24435ca603adc9eba608ba66d + + email: + image: axllent/mailpit + environment: + - MP_SMTP_BIND_ADDR=0.0.0.0:10025 + - MP_UI_BIND_ADDR=0.0.0.0:1080 + - MP_SMTP_AUTH_ACCEPT_ANY=true + - MP_SMTP_AUTH_ALLOW_INSECURE=true diff --git a/docker-compose-dev-deps.yml b/docker-compose-dev-deps.yml index 09805c4..99a9da1 100644 --- a/docker-compose-dev-deps.yml +++ b/docker-compose-dev-deps.yml @@ -3,16 +3,17 @@ version: "3" services: email: image: axllent/mailpit - ports: - - 1080:1080 - - 10025:10025 + restart: always + container_name: vanigam-dash-maildev + network_mode: host environment: - - MP_SMTP_AUTH=admin:password - - MP_MAX_MESSAGES=5000 - - MP_SMTP_AUTH_ALLOW_INSECURE=1 - MP_SMTP_BIND_ADDR=0.0.0.0:10025 - - MP_SMTP_AUTH_ALLOW_INSECURE=true - MP_UI_BIND_ADDR=0.0.0.0:1080 + - MP_SMTP_AUTH_ACCEPT_ANY=true + - MP_SMTP_AUTH_ALLOW_INSECURE=true + # - MAILDEV_SMTP_PORT=10025 + # - MAILDEV_INCOMING_USER=admin + # - MAILDEV_INCOMING_PASS=password postgres: image: postgres:16.4 diff --git a/utils/db-migrations/Cargo.toml b/utils/db-migrations/Cargo.toml index 7c0f0cc..7a6588c 100644 --- a/utils/db-migrations/Cargo.toml +++ b/utils/db-migrations/Cargo.toml @@ -5,7 +5,6 @@ edition = "2021" [workspace] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] actix-rt = "2.9.0"