For MariaDB, the following environment variables:
- MYSQL_USER
- MYSQL_PASSWORD
values can be defined in files:
- MYSQL_USER_FILE
- MYSQL_PASSWORD_FILE
It is a functionality available for many Docker images.
As far as i can understand, the change should be in containers.py get_config_env method.