From 712ea21efe8647f42a6f21ef9d0324ad7794dcc2 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 31 Aug 2019 18:09:40 +0100 Subject: [PATCH] Added mailhog to the docker-compose setup --- docker-compose.yml | 7 +++++++ readme.md | 2 ++ 2 files changed, 9 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 47f38184e..ea7a61ab5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,6 +28,9 @@ services: DB_DATABASE: bookstack-test DB_USERNAME: bookstack-test DB_PASSWORD: bookstack-test + MAIL_DRIVER: smtp + MAIL_HOST: mailhog + MAIL_PORT: 1025 ports: - ${DEV_PORT:-8080}:80 volumes: @@ -39,3 +42,7 @@ services: volumes: - ./:/app entrypoint: /app/dev/docker/entrypoint.node.sh + mailhog: + image: mailhog/mailhog + ports: + - ${DEV_MAIL_PORT:-8025}:8025 diff --git a/readme.md b/readme.md index 6f0956eb5..2efc6b160 100644 --- a/readme.md +++ b/readme.md @@ -103,6 +103,8 @@ If needed, You'll be able to run any artisan commands via docker-compose like so docker-compose run app php artisan list ``` +The docker-compose setup runs an instance of [MailHog](https://github.com/mailhog/MailHog) and sets environment variables to redirect any BookStack-sent emails to MailHog. You can view this mail via the MailHog web interface on `localhost:8025`. You can change the port MailHog is accessible on by setting a `DEV_MAIL_PORT` environment variable. + ## 🌎 Translations All text strings can be found in the `resources/lang` folder where each language option has its own folder. To add a new language you should copy the `en` folder to an new folder (eg. `fr` for french) then go through and translate all text strings in those files, leaving the keys and file-names intact. If a language string is missing then the `en` translation will be used. To show the language option in the user preferences language drop-down you will need to add your language to the options found at the bottom of the `resources/lang/en/settings.php` file. A system-wide language can also be set in the `.env` file like so: `APP_LANG=en`.