This Docker image (yobasystems/alpine-mariadb) is based on the minimal Alpine Linux with Mariadb 10.1.21 (MySQL Compatible) database server.
- Minimal size only 48 MB and only 4 layers
- Memory usage is minimal on a simple install.
- Mariadb Version 10.1.21
- Armv7 (armhf) version with
:armhf
tag
:latest
latest nginx & alpine:master
master branch usually inline with latest:v0.0.0
version number related to nginx version:armhf
Armv7 based on latest tag but arm architecture
docker run -it --name mysql -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_DATABASE=wordpressdb -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=hguyFt6S95dgfR4ryb -e MYSQL_ROOT_PASSWORD=hguyFtgfR4r9R4r76 yobasystems/alpine-mariadb
It will create a new db, and set mysql root password (default is RaNd0MpA$$W0Rd generated by pwgen) unless the data already exists.
/var/lib/mysql
: Database files/var/lib/mysql/mysql-bin
: MariaDB logs
MYSQL_DATABASE
: specify the name of the databaseMYSQL_USER
: specify the User for the databaseMYSQL_PASSWORD
: specify the User password for the databaseMYSQL_ROOT_PASSWORD
: specify the root password for Mariadb
####(Please pass your own credentials or let them be generated automatically, don't use these ones for production!!)
mysql:
image: yobasystems/alpine-mariadb
environment:
MYSQL_ROOT_PASSWORD: hguyFtgfR4r9R4r76
MYSQL_DATABASE: wordpressdb
MYSQL_USER: wordpressuser
MYSQL_PASSWORD: hguyFt6S95dgfR4ryb
expose:
- "3306"
volumes:
- /data/example/mysql:/var/lib/mysql
restart: always