docker-compose-lamp icon indicating copy to clipboard operation
docker-compose-lamp copied to clipboard

Make it possible to configure database settings

Open aldexxx86 opened this issue 3 years ago • 2 comments

Make it possible to configure database settings that are usually found in the my.cnf file. For example I would like to be able to set the following setting: lower_case_table_names=0

aldexxx86 avatar May 17 '22 15:05 aldexxx86

Hy @aldexxx86,

you can do this by adding a volume entry to the database service like eg: - ${MYSQL_INITDB_DIR-./config/initdb/config/my.cnf}:/etc/my.cnf

at the end of the volumes section you need to add a command to allow it to run it in sql_mode

command: --sql_mode=""

rebuild the image and you should be good to go

alainseys avatar May 20 '22 12:05 alainseys

@aldexxx86

i have added a pull request with a other approach

alainseys avatar May 20 '22 15:05 alainseys