Merge pull request #945 from dlecan/feat-docker-loglevel

Allow to configure log level of Docker containers (v2)
This commit is contained in:
Tomas Bures 2020-08-28 15:30:25 +02:00 committed by GitHub
commit 490031c8b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -263,6 +263,7 @@ variables (e.g. `URL_BASE_TRUSTED=https://mailtrain.domain.com (and more env-var
| LDAP_UIDTAG | LDAP UID tag (e.g. uid/cn/username) | | LDAP_UIDTAG | LDAP UID tag (e.g. uid/cn/username) |
| WITH_ZONE_MTA | enables or disables builtin Zone-MTA (default: true) | | WITH_ZONE_MTA | enables or disables builtin Zone-MTA (default: true) |
| POOL_NAME | sets builtin Zone-MTA pool name (default: os.hostname()) | | POOL_NAME | sets builtin Zone-MTA pool name (default: os.hostname()) |
| LOG_LEVEL | sets log level among `silly|verbose|info|http|warn|error|silent` (default: `info`) |
If you don't want to modify the original `docker-compose.yml`, you can put your overrides to another file (e.g. `docker-compose.override.yml`) -- like the one below. If you don't want to modify the original `docker-compose.yml`, you can put your overrides to another file (e.g. `docker-compose.override.yml`) -- like the one below.

View file

@ -35,6 +35,7 @@ MYSQL_USER=${MYSQL_USER:-'mailtrain'}
MYSQL_PASSWORD=${MYSQL_PASSWORD:-'mailtrain'} MYSQL_PASSWORD=${MYSQL_PASSWORD:-'mailtrain'}
WITH_ZONE_MTA=${WITH_ZONE_MTA:-'true'} WITH_ZONE_MTA=${WITH_ZONE_MTA:-'true'}
POOL_NAME=${POOL_NAME:-$(hostname)} POOL_NAME=${POOL_NAME:-$(hostname)}
LOG_LEVEL=${LOG_LEVEL:-'info'}
# Warning for users that already rely on the MAILTRAIN_SETTING variable # Warning for users that already rely on the MAILTRAIN_SETTING variable
# Can probably be removed in the future. # Can probably be removed in the future.
@ -82,6 +83,9 @@ builtinZoneMTA:
queue: queue:
processes: 5 processes: 5
log:
level: $LOG_LEVEL
EOT EOT
# Manage LDAP if enabled # Manage LDAP if enabled