This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is the docker command to launch a MySQL 5.7 container, name it "DrupalMysql", set a | |
few environment variables, expose the MySQL port 3306 as 3308 on the local host and daemonise it: | |
docker run \ | |
--name DrupalMysql \ | |
-e MYSQL_ROOT_PASSWORD=my-secret-pw \ | |
-e MYSQL_DATABASE=drupal \ | |
-e MYSQL_USER=drupal \ | |
-e MYSQL_PASSWORD=drupal \ | |
-p 3308:3306 \ |
NewerOlder