Add new environment variable for logging slow MariaDB queries.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-02-20 01:16:08 -06:00
parent 18a2089377
commit 059b9e5670
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
2 changed files with 11 additions and 0 deletions

View File

@ -52,3 +52,7 @@ MYSQL_DATABASE=azuracast
# Default: yes
MYSQL_RANDOM_ROOT_PASSWORD=yes
# Log slower queries for the purpose of diagnosing issues. Only turn this on when
# you need to, by uncommenting this and switching it to 1.
MYSQL_SLOW_QUERY_LOG=1

View File

@ -63,6 +63,13 @@ MYSQL_DATABASE=azuracast
# Default: yes
MYSQL_RANDOM_ROOT_PASSWORD=yes
# Log slower queries for the purpose of diagnosing issues. Only turn this on when
# you need to, by uncommenting this and switching it to 1.
# To read the slow query log once enabled, run:
# docker-compose exec mariadb mysqldumpslow /var/log/mysql/slow.log
# Default: 0
MYSQL_SLOW_QUERY_LOG=0
#
# Advanced Configuration
#