Merge branch 'pull/803' into development

# Conflicts:
#	docker-entrypoint.sh
This commit is contained in:
Tomas Bures 2020-01-12 09:13:55 +01:00
commit ddd84656b8
2 changed files with 63 additions and 46 deletions

View file

@ -224,6 +224,26 @@ The instructions above use an automatically built Docker image on DockerHub (htt
| LDAP_UIDTAG | LDAP UID tag (e.g. uid/cn/username) | | LDAP_UIDTAG | LDAP UID tag (e.g. uid/cn/username) |
| POOL_NAME | sets builtin Zone-MTA pool name (default: os.hostname()) | | POOL_NAME | sets builtin Zone-MTA pool name (default: os.hostname()) |
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 ## License
**GPL-V3.0** **GPL-V3.0**

View file

@ -43,7 +43,7 @@ else
echo 'Info: Generating application/production.yaml' echo 'Info: Generating application/production.yaml'
# Basic configuration # Basic configuration
cat > server/config/production.yaml <<EOT cat >> server/config/production.yaml <<EOT
www: www:
host: 0.0.0.0 host: 0.0.0.0
proxy: $WWW_PROXY proxy: $WWW_PROXY
@ -62,9 +62,6 @@ else
enabled: true enabled: true
host: $REDIS_HOST host: $REDIS_HOST
log:
level: info
builtinZoneMTA: builtinZoneMTA:
log: log:
level: warn level: warn