Sign inSign up

karbowiak/docker-mysql

By karbowiak

•Updated over 2 years ago

Mildly extended MySQL containers based on MySQL, Percona and MariaDB

Image
0

3.7K

karbowiak/docker-mysql repository overview

⁠Docker Images

These images are primarily ment for use with Devspace, however they will work for other purposes as well.

⁠Beware

These images auto rebuild once a week!

⁠Images

There are 3 different types of databases

  • MySQL
  • Percona
  • MariaDB

Each of them have the following versions: MySQL:

  • 8.0
  • 5.7

Percona:

  • 8.0
  • 5.7
  • 5.6

MariaDB:

  • 10.7
  • 10.6
  • 10.5
  • 10.4
  • 10.3
  • 10.2
  • 10.1

⁠Extras included

⁠Extra configuration done

Regardless of the version, there are some extra configuration done.

⁠my.cnf
[mysqld]
  thread_cache_size = 64
  join_buffer_size = 8M
  tmp_table_size = 256M
  innodb_autoextend_increment = 512
  max_allowed_packet = 16M
  max_heap_table_size = 256M
  read_buffer_size = 4M
  read_rnd_buffer_size = 16M
  bulk_insert_buffer_size = 64M
  innodb_autoextend_increment = 512
  innodb_buffer_pool_size = 4G
  innodb_log_file_size = 512M
  innodb_log_buffer_size = 128M
  innodb_flush_log_at_trx_commit= 2
  innodb_thread_concurrency = 2
  innodb_log_files_in_group = 2
  innodb_buffer_pool_instances = 2
  innodb_flush_method = O_DIRECT
  default_authentication_plugin = mysql_native_password
  query_cache_type = 1
  query_cache_size = 32M
  query_cache_limit= 2M
  bind-address = 0.0.0.0

⁠Modify my.cnf

You can freely inject or alter the my.cnf configuration. Simply overwrite the file located at /etc/mysql/conf.d/custom.cnf for MySQL and MariaDB, and /var/lib/mysql/conf.d/custom.cnf for Percona

⁠How to use

Refer to the individual containers documentation for more information.

MySQL: https://hub.docker.com/_/mysql⁠ Percona: https://hub.docker.com/r/percona/percona-server⁠ MariaDB: https://hub.docker.com/_/mariadb⁠

Tag summary

Content type

Image

Digest

sha256:8cc573707…

Size

303.4 MB

Last updated

over 2 years ago

docker pull karbowiak/docker-mysql:mysql8.0