style: 优化mysql应用的command传递方式 (#3560)
This commit is contained in:
parent
7f09f45b41
commit
f2dccca2fd
|
|
@ -14,10 +14,10 @@ services:
|
||||||
- ./conf/my.cnf:/etc/mysql/my.cnf
|
- ./conf/my.cnf:/etc/mysql/my.cnf
|
||||||
- ./log:/var/log/mysql
|
- ./log:/var/log/mysql
|
||||||
command:
|
command:
|
||||||
--character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
--collation-server=utf8mb4_general_ci
|
- --collation-server=utf8mb4_general_ci
|
||||||
--explicit_defaults_for_timestamp=true
|
- --explicit_defaults_for_timestamp=true
|
||||||
--lower_case_table_names=1
|
- --lower_case_table_names=1
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ services:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
command:
|
command:
|
||||||
--character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
--collation-server=utf8mb4_general_ci
|
- --collation-server=utf8mb4_general_ci
|
||||||
--explicit_defaults_for_timestamp=true
|
- --explicit_defaults_for_timestamp=true
|
||||||
--lower_case_table_names=1
|
- --lower_case_table_names=1
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue