Allow to configure log level of Docker containers
This commit is contained in:
parent
5a42756b12
commit
520886b3b4
2 changed files with 5 additions and 0 deletions
|
@ -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) |
|
||||
| WITH_ZONE_MTA | enables or disables builtin Zone-MTA (default: true) |
|
||||
| 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.
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ MYSQL_USER=${MYSQL_USER:-'mailtrain'}
|
|||
MYSQL_PASSWORD=${MYSQL_PASSWORD:-'mailtrain'}
|
||||
WITH_ZONE_MTA=${WITH_ZONE_MTA:-'true'}
|
||||
POOL_NAME=${POOL_NAME:-$(hostname)}
|
||||
LOG_LEVEL=${LOG_LEVEL:-'info'}
|
||||
|
||||
# Warning for users that already rely on the MAILTRAIN_SETTING variable
|
||||
# Can probably be removed in the future.
|
||||
|
@ -82,6 +83,9 @@ builtinZoneMTA:
|
|||
|
||||
queue:
|
||||
processes: 5
|
||||
|
||||
log:
|
||||
level: $LOG_LEVEL
|
||||
EOT
|
||||
|
||||
# Manage LDAP if enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue