skalkanci/mysql-custom

By skalkanci

Updated over 2 years ago

Custom settings for mysql

Image
Databases & Storage

17

*** Custom settings for Mysql 5.7


[mysqld] skip-name-resolve

event_scheduler=ON

innodb_buffer_pool_size = 728M

query_cache_type = 1

query_cache_limit = 1024K

query_cache_min_res_unit = 2k

query_cache_size = 728M

lower_case_table_names=1


example docker-compose:

mysql_container:

image: mysql-custom:custom-mysql-5-7

container_name: mysql_stack

expose:

  - 3306

ports:

  - 3306:3306

volumes:

  - "/mysql-data/db:/var/lib/mysql"
environment:

  - 'MYSQL_ROOT_PASSWORD=A2Gr5R#88BB69fSs
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']

restart: always

network_mode: containernetwork

Docker Pull Command

docker pull skalkanci/mysql-custom