Add 'profiles: email' to the MailHog container

This commit is contained in:
Felipe Bueno 2024-03-21 09:16:29 -03:00
parent 4d02bae826
commit 561e62481d
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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"]