Created
March 5, 2019 02:47
-
-
Save DaysJan/b92a1a67a11b5c2af97b8a48893d99bd to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| mkdir -p /data/mysql /data/redis | |
| # mysql | |
| docker run --name mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -v /data/mysql:/var/lib/mysql -d --restart unless-stopped mysql:5.7 --general-log=1 --general_log_file=general.log | |
| # redis | |
| docker run --name redis -p 6379:6379 -v /data/redis:/data -d --restart unless-stopped redis:4.0-alpine redis-server --appendonly yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment