Dockerfile/alpine-mysql
2019-12-05 11:16:47 +08:00
..
docker-compose.yml feat(): add docker-compose 2018-03-30 18:42:32 +08:00
Dockerfile update at 2019-12-05 11:16:47 by ehlxr 2019-12-05 11:16:47 +08:00
my.cnf 🐛fix(): fix bug add docker-compose 2018-03-30 18:41:51 +08:00
README.md 🐛fix(): fix wrong pwd in demo 2018-03-30 18:47:01 +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 eDWyvjS2)

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)