File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ _**MYSQL_LOG_DIR**_
119119
120120This will be used to store Apache logs. The default value for this is ` ./logs/mysql ` .
121121
122+ _ ** MYSQL_CNF** _
123+
124+ Define your custom ` my.cnf ` modifications to meet your database requirments.
125+
122126## Web Server
123127
124128Apache is configured to run on port 80. So, you can access it via ` http://localhost ` .
Original file line number Diff line number Diff line change 1+ [mysql]
2+
3+ [mysqld]
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ services:
4040 - ${MYSQL_INITDB_DIR-./config/initdb}:/docker-entrypoint-initdb.d
4141 - ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
4242 - ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
43+ - ${MYSQL_CNF-./config/mysql/my.cnf}:/etc/my.cnf
4344 environment :
4445 MYSQL_ROOT_PASSWORD : ${MYSQL_ROOT_PASSWORD}
4546 MYSQL_DATABASE : ${MYSQL_DATABASE}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ DATABASE=mysql8
3131MYSQL_INITDB_DIR = ./config/initdb
3232MYSQL_DATA_DIR = ./data/mysql
3333MYSQL_LOG_DIR = ./logs/mysql
34+ MYSQL_CNF = ./config/mysql/my.cnf
3435
3536# If you already have the port 80 in use, you can change it (for example if you have Apache)
3637HOST_MACHINE_UNSECURE_HOST_PORT = 80
You can’t perform that action at this time.
0 commit comments