juanluisbaptiste / docker-otrs

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

Wait for db only during the OTRS install process #75

Closed thenets closed 4 years ago

thenets commented 4 years ago

Why

I don't want to leave my MySQL root credentials in the ENVs for security reasons.

Problem

For some reasons the "wait_db" checks the MySQL root credentials instead of regular OTRS user. So if I remove the root credentials from ENV the OTRS never starts.

Solution

I decided to move the "wait_db" to the installation process only. Another possible approach is to create two "wait_db" functions; one for regular user and another one for root user.

juanluisbaptiste commented 4 years ago

root credentials are needed to create the otrs user in an empty database. you can use docker swarm secrets too.

thenets commented 4 years ago

Hi Juan. I know but it's not necessary after installation. Why can't I remove the root password after first installation?

juanluisbaptiste commented 4 years ago

It is also needed when restoring a backup using OTRS_DROP_DATABASE=yes, so it will not be accepted.

thenets commented 4 years ago

Ok. Thanks anyway.