Docker + Alpine + MariaDB(Mysql)
This is an upgrade to the leafney/docker-alpine-mysql project and renamed to leafney/alpine-mariadb
.
MYSQL_ROOT_PWD
: root Password default is "mysql"MYSQL_USER
: new UserNameMYSQL_USER_PWD
: new User PasswordMYSQL_USER_DB
: new Database for new User
Download from DockerHub for latest
tags or specific version tags:
$ docker pull leafney/alpine-mariadb:latest
$ docker run --name mysql -v /mysql/data/:/var/lib/mysql -d -p 3306:3306 leafney/alpine-mariadb:latest
$ docker run --name mysql -v /mysql/data/:/var/lib/mysql -d -p 3306:3306 -e MYSQL_ROOT_PWD=123 -e MYSQL_USER=dev -e MYSQL_USER_PWD=dev leafney/alpine-mariadb:latest
$ docker run --name mysql -v /mysql/data/:/var/lib/mysql -d -p 3306:3306 -e MYSQL_ROOT_PWD=123 -e MYSQL_USER=dev -e MYSQL_USER_PWD=dev -e MYSQL_USER_DB=userdb leafney/alpine-mariadb:latest
$ docker-compose up -d
$ docker-compose -f docker-compose.build.yml up -d
Note: Please get the latest version of mysql from the website https://pkgs.alpinelinux.org/packages if you encounter problems in building.