NickClearyTech / clearys-bot-toy

The Source Code for the Cleary's Bot Toy discord Bot
2 stars 2 forks source link

Change MARIADB_RANDOM_ROOT_PASSWORD to "true" from true #32

Closed RJSent closed 9 months ago

RJSent commented 9 months ago

MARIADB expects a string in this field, not a boolean. Certain versions of docker compose appear to treat the word true as a keyword boolean value, not a string.

Evidence that a string is expected, not a boolean: https://community.passbolt.com/t/update-db-password-on-docker-installation/6471/3 https://mariadb.com/kb/en/mariadb-server-docker-official-image-environment-variables/#mariadb_random_root_password-mysql_random_root_password

Set to a non-empty value, like yes, to generate a random initial password for the root user. The generated root password will be printed to stdout (GENERATED ROOT PASSWORD: .....).

"yes" is distinctly not a boolean value, so to ensure portability in the docker-compose file true should be changed to "true".

RJSent commented 9 months ago

Error message:

ERROR: The Compose file './docker-compose.yaml' is invalid because: services.discorddata_db.environment.MARIADB_RANDOM_ROOT_PASSWORD contains true, which is an invalid type, it should be a string, number, or a null