summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-03-23 01:56:43 (GMT)
committerJon Pugh2018-03-23 01:56:43 (GMT)
commit5b9edfc97db4ae9f089c11b600fad9e4492f3bf9 (patch)
tree664bd01d868c1ed945c5ebee04862bb1585c4f2c
parent5d60e8fe8dbce5245f148a2c53899efa08441868 (diff)
Look for a mysql.cnf file in the server_config folder, then add it to the maraidb container as a volume.
-rw-r--r--src/Provision/Service/Db/DbMysqlDockerService.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Provision/Service/Db/DbMysqlDockerService.php b/src/Provision/Service/Db/DbMysqlDockerService.php
index 6747cb3..93d62df 100644
--- a/src/Provision/Service/Db/DbMysqlDockerService.php
+++ b/src/Provision/Service/Db/DbMysqlDockerService.php
@@ -64,6 +64,11 @@ class DbMysqlDockerService extends DbMysqlService implements DockerServiceInterf
}
catch (\Exception $e) {}
+ // Look up a mysql conf override file.
+ if (file_exists($this->provider->server_config_path . '/mysql.cnf')) {
+ $compose['volumes'][] = $this->provider->server_config_path . '/mysql.cnf' . ':/etc/mysql/conf.d/provision.cnf';
+ }
+
return $compose;
}