From 7ccf751c5a558bd3b58cbbcd76ce136e74145323 Mon Sep 17 00:00:00 2001 From: Gerhard Sletten Date: Thu, 12 Dec 2019 14:34:00 +0100 Subject: [PATCH] Add a note in README.md about passing own env-vars to docker-compose --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 5ec718d1..9e007881 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,26 @@ The instructions above use an automatically built Docker image on DockerHub (htt | LDAP_BASEDN | LDAP base DN | | LDAP_UIDTAG | LDAP UID tag (e.g. uid/cn/username) | +If you are using docker-compose to run Mailtrain in production and need to pass your own overrides of these env-vars in a custom override like `docker-compose.override.yml`: + +``` +version: '3' +services: + mailtrain: + environment: + - URL_BASE_TRUSTED + - URL_BASE_SANDBOX + - URL_BASE_PUBLIC +``` + +You can now override URL_BASE_TRUSTED, URL_BASE_SANDBOX and URL_BASE_PUBLIC in an `.env` file and run this command to build or run it + +`docker-compose -f docker-compose.yml -f docker-compose.override.yml build (or up)` + +or you can pass this env-vars in the shell-command like this + +`URL_BASE_TRUSTED=https://mailtrain.domain.com (and more env-vars..) docker-compose -f docker-compose.yml -f docker-compose.override.yml build (or up)` + ## License **GPL-V3.0**