Add MailHog container to provide login with email without extra config
This commit is contained in:
parent
e8f9a186c6
commit
82dc9b076d
@ -12,8 +12,8 @@ TWITTER_ID=
|
|||||||
TWITTER_SECRET=
|
TWITTER_SECRET=
|
||||||
|
|
||||||
# email
|
# email
|
||||||
LOGIN_EMAIL_SERVER=
|
LOGIN_EMAIL_SERVER=smtp://mailhog:1025
|
||||||
LOGIN_EMAIL_FROM=
|
LOGIN_EMAIL_FROM=sndev@mailhog.dev
|
||||||
LIST_MONK_AUTH=
|
LIST_MONK_AUTH=
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
|
13
README.md
13
README.md
@ -325,6 +325,19 @@ You can login to test features like posting, replying, tipping, etc with `./snde
|
|||||||
|
|
||||||
### Login with Email
|
### Login with Email
|
||||||
|
|
||||||
|
#### MailHog
|
||||||
|
|
||||||
|
- The app is already prepared to send emails through (MailHog)[https://github.com/mailhog/MailHog] so no extra configuration is needed
|
||||||
|
- Click "sign up" and enter any email address (remember, it's not going anywhere beyond your workstation)
|
||||||
|
- Access MailHog's web UI on http://localhost:1025
|
||||||
|
- Click the link (looks like this):
|
||||||
|
|
||||||
|
```
|
||||||
|
http://localhost:3000/api/auth/callback/email?email=satoshi%40gmail.com&token=110e30a954ce7ca643379d90eb511640733de405f34a31b38eeda8e254d48cd7
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Sendgrid
|
||||||
|
|
||||||
- Create a Sendgrid account (or other smtp service)
|
- Create a Sendgrid account (or other smtp service)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -377,6 +377,21 @@ services:
|
|||||||
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
|
command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
mailhog:
|
||||||
|
image: mailhog/mailhog:latest
|
||||||
|
container_name: mailhog
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:8025"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 1m
|
||||||
|
ports:
|
||||||
|
- "8025:8025"
|
||||||
|
- "1025:1025"
|
||||||
|
links:
|
||||||
|
- app
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
os:
|
os:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user