mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
优化mysql镜像,添加最大连接数的参数例子
This commit is contained in:
parent
ddfe223d64
commit
07aa464b28
@ -10,6 +10,10 @@
|
||||
2. 可自行修改my.cnf进行构建
|
||||
3. 去掉默认的 VOLUME /var/lib/mysql 方便备份。
|
||||
|
||||
### 配置
|
||||
|
||||
* 最大连接数:可参考下docker-compose.yml,启动容器的时候传入`--max_connections=300`参数配置即可。
|
||||
|
||||
|
||||
### 阿里云构建的镜像
|
||||
|
||||
|
@ -13,6 +13,7 @@ services:
|
||||
volumes:
|
||||
- ./data/standalong:/var/lib/mysql/:z
|
||||
#- ./data/standalong-logs:/var/log/mysql/:z
|
||||
command: ["--max_connections=300"]
|
||||
logging:
|
||||
driver: 'json-file'
|
||||
options:
|
||||
|
Loading…
Reference in New Issue
Block a user