Dockerfile/alpine-mysql
ehlxr 4ebec1bde5 🐛fix(): fix bug add docker-compose
Signed-off-by: ehlxr <ehlxr.me@gmail.com>
2018-03-30 18:41:51 +08:00
..
Dockerfile 🐛fix(): fix bug add docker-compose 2018-03-30 18:41:51 +08:00
my.cnf 🐛fix(): fix bug add docker-compose 2018-03-30 18:41:51 +08:00
README.md 🐛fix(): fix bug add docker-compose 2018-03-30 18:41:51 +08:00
startup.sh 🐛fix(): fix bug add docker-compose 2018-03-30 18:41:51 +08:00

alpine-mysql

a docker image base on alpine with mysql

build image

docker build -t ehlxr/alpine-mysql .

build image (docker-compose)

docker-compose build

Usage

docker run -it --name mysql -p 3306:3306 -v $(pwd)/db-data:/data -e MYSQL_DATABASE=admin -e MYSQL_USER=ehlxr -e MYSQL_PASSWORD=prY6KaQC -e MYSQL_ROOT_PASSWORD=eDWyvjS2 ehlxr/alpine-mysql

It will create a new db(default is admin) whith user ehlxr set password is prY6KaQC, and set mysql root password(default is #Q*2.&tY)

Usage (docker-compose)

docker-compose up -d

It will create a new db(default is admin) whith user ehlxr set password is prY6KaQC, and set mysql root password(default is eDWyvjS2)