How to generate .env with random password
echo "MARIADB_ROOT_PASSWORD=$(pwgen 30 1)" >> .env
Example output:
MARIADB_ROOT_PASSWORD=ieGhie9eighah9ohghaeshah9eegh9
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow