NOW MANAGED ON CODEBERG
Added mailhog to the docker-compose setup
Dan Brown712ea21efe86
diff --git a/docker-compose.yml b/docker-compose.ymlindex 47f38184e..ea7a61ab5 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -28,6 +28,9 @@ services:DB_DATABASE: bookstack-testDB_USERNAME: bookstack-testDB_PASSWORD: bookstack-test+ MAIL_DRIVER: smtp+ MAIL_HOST: mailhog+ MAIL_PORT: 1025ports:- ${DEV_PORT:-8080}:80volumes:@@ -39,3 +42,7 @@ services:volumes:- ./:/appentrypoint: /app/dev/docker/entrypoint.node.sh+ mailhog:+ image: mailhog/mailhog+ ports:+ - ${DEV_MAIL_PORT:-8025}:8025diff --git a/readme.md b/readme.mdindex 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 sodocker-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.+## 🌎 TranslationsAll 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`.