Last active
August 23, 2022 20:26
-
-
Save dkhorev/8456632e966f097d73acb08e9b7939fc to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# first run | |
docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret \ | |
-e MYSQL_DATABASE=laravel -e MYSQL_USER=laravel -e MYSQL_PASSWORD=secret \ | |
-v ~/mysql-data:/var/lib/mysql mysql:8 | |
# stop service | |
docker stop mysql | |
# start service | |
docker start mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment