1
0
Fork 0

feat: MySQL 容器时间与宿主机同步 (#72)

This commit is contained in:
wanghe 2023-05-05 15:20:57 +08:00 committed by GitHub
parent 01c2abaa94
commit f90db7c3b6
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ services:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/mysql/my.cnf
- ./log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci

View File

@ -15,6 +15,8 @@ services:
- ./data/:/var/lib/mysql
- ./conf/my.cnf:/etc/my.cnf
- ./log:/var/log/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
createdBy: "Apps"
command: