juanluisbaptiste / docker-otrs

The unofficial Znuny/OTRS Ticketing System docker image
https://www.juanbaptiste.tech/category/otrs
GNU Lesser General Public License v3.0
173 stars 101 forks source link

add support for custom MYSQL_ROOT_USER #57

Closed ftvadmin closed 5 years ago

ftvadmin commented 5 years ago

This PR makes the hardcoded mysql-root-user configurable by adding MYSQL_ROOT_USER to the environment-file. The default for MYSQL_ROOT_USER is root so it won't break existing setups.

We came across this issue as we wanted to use docker-otrs within our Microsoft Azure environment. Unfortunately "Azure Database for MySQL" enforces the usernames to be something like root@db-instance-name. So we need the option to specify the username.

juanluisbaptiste commented 5 years ago

Merged, thanks.