This docker sets up and configures a database using MySQL
We chose to do MariaDB because its an open source software, is free to use and has an active community that contributes to its development. It is fully compatible with MySQL and it provides high performance with improved storage capabilities and fast searches while also offering enhanced security features and fixes.
-
Executes predefined preparation scenarios.
-
Checks and creates the necessary folders if they do not exist.
-
Configures access permissions for MySQL folders.
-
Creates the initial MySQL data if none exists.
-
Sets the password of the MySQL root user.
-
Optionally, creates a new database and user.
-
Executes predefined scripts before booting.
-
Starts the MySQL server.
find file 'install.sh'
Open a terminal Following commands
Contains
docker volume create mdb1
docker build -t kingpancakedb:latest
docker run -d \
--name myMariaDB \
-v mdb1:/var/lib/mysql \
-p 3306:3306 \
kingpancakedb:latest