Dockerfile to build a MariaDB 10.0 container for Dokku
- MariaDB service is supervised by runit
- MariaDB output is logged by runit
Official MariaDB Packages
The packages provided by the MariaDB allow usage of the latest GA release which is currently not available from Canonical.
The Configuration is tuned for
a system memory of 4GB, a typical web load, many tables and a maximum of 500 connections to the database.
Using the image
To use this image with dokku-alt you need to set some configuration variables in
export MARIADB_IMAGE=yabawock/dokku-alt-mariadb export MARIADB_COMMAND=/sbin/my_init export MARIADB_CONTAINER_VOLUME=/var/lib/mysql export MARIADB_CONTAINER_PASSWORD=/etc/mysql/mysql_password