There should be password in plain text in docker-compose.yml
Using hash is inconvenient.
environment:
- PHPREDMIN_AUTH_USERNAME=UserName
- PHPREDMIN_AUTH_PASSWORD=PlainPassword
You can hash it and save somewhere on first run index.php
$hash = GetHash();
if(!$hash){
$pwd = getenv('PHPREDMIN_AUTH_PASSWORD');
$hash = password_hash($pwd, PASSWORD_DEFAULT);
SaveHash($hash);
}
// login method
There should be password in plain text in docker-compose.yml
Using hash is inconvenient.
You can hash it and save somewhere on first run index.php