From a6e90ff325fe6fc79e478c0a41aa38caa941e289 Mon Sep 17 00:00:00 2001 From: Ariel Weher Date: Mon, 16 Dec 2024 10:00:00 -0300 Subject: [PATCH] Add Docker Compose configuration for MailHog service --- docker-compose.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..f598c9dc --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +--- +services: + mailhog: + image: mailhog/mailhog + container_name: mailhog + ports: + - "1025:1025" # SMTP port + - "8025:8025" # Web UI port + environment: + - MH_STORAGE=maildir + volumes: + - ./maildir:/maildir + restart: unless-stopped + healthcheck: + test: ["CMD", "nc", "-z", "localhost", "8025"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s