Add a note in README.md about passing own env-vars to docker-compose

This commit is contained in:
Gerhard Sletten 2019-12-12 14:34:00 +01:00
parent 2cae00315c
commit 7ccf751c5a

View file

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