From 561e62481df69c7b860dc6015cfe42607d5e1574 Mon Sep 17 00:00:00 2001 From: Felipe Bueno Date: Thu, 21 Mar 2024 09:16:29 -0300 Subject: [PATCH] Add 'profiles: email' to the MailHog container --- README.md | 8 +++++++- docker-compose.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d5dfb539..43bc05c0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Start the development environment $ ./sndev start ``` -By default all services will be run. If you want to exclude specific services from running, set `COMPOSE_PROFILES` to use one or more of `minimal|images|search|payments`. To only run mininal services without images, search, or payments: +By default all services will be run. If you want to exclude specific services from running, set `COMPOSE_PROFILES` to use one or more of `minimal|images|search|payments|email`. To only run mininal services without images, search, or payments: ```sh $ COMPOSE_PROFILES=minimal ./sndev start @@ -61,6 +61,12 @@ To run with images and payments services: $ COMPOSE_PROFILES=images,payments ./sndev start ``` +To run with the option to sign up/login using [MailHog](#MailHog): + +```sh +$ COMPOSE_PROFILES=email ./sndev start +``` + View all available commands ```sh diff --git a/docker-compose.yml b/docker-compose.yml index 401027bf..50171b89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -380,6 +380,8 @@ services: mailhog: image: mailhog/mailhog:latest container_name: mailhog + profiles: + - email restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8025"]