We should simply mirror a local config file to the MySQL config directory in Docker
File: ./docker-compose.local.yml
(or however you name it)
services:
# [...]
mysql:
# [...]
image: mysql:5.7
# [...]
volumes:
# [...]
- "./config/mysql/my.cnf:/etc/mysql/my.cnf"
# [...]
# Etc.
File: ./config/mysql/my.cnf
(relative to your Docker Composer file)
[mysqld]
# Here we removed "ONLY_FULL_GROUP_BY"
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION