From a155294aad31533051de5950692b5ede7aea7f1f Mon Sep 17 00:00:00 2001 From: Simon Gruber Date: Sun, 29 Mar 2026 16:47:23 +0200 Subject: [PATCH] Add mailpit for development --- config.yaml | 8 ++++---- src/compose.yml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/config.yaml b/config.yaml index f381bc4..88b1310 100644 --- a/config.yaml +++ b/config.yaml @@ -3,13 +3,13 @@ app: email: enabled: true - smtp_host: "mail.example.com" - smtp_port: 465 - smtp_username: "lunchtime@example.com" + smtp_host: "mailpit" + smtp_port: 1025 + smtp_username: "" smtp_password: "" from_address: "lunchtime@example.com" use_tls: false - use_ssl: true + use_ssl: false announcements: # - type: info diff --git a/src/compose.yml b/src/compose.yml index cc0cb81..6cbcc9b 100644 --- a/src/compose.yml +++ b/src/compose.yml @@ -1,4 +1,16 @@ services: + mailpit: + image: axllent/mailpit:latest + container_name: lunchtime-mailpit + ports: + - "1025:1025" + - "8025:8025" + restart: unless-stopped + networks: + burger-network: + aliases: + - mailpit + nginx: image: nginx:alpine container_name: lunchtime-nginx @@ -25,11 +37,15 @@ services: - APP_ENV=production - LOG_LEVEL=info - DB_PATH=/app/data + - SMTP_HOST=mailpit + - SMTP_PORT=1025 restart: unless-stopped networks: burger-network: aliases: - backend + depends_on: + - mailpit frontend: build: