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

This commit is contained in:
wanghe 2023-05-05 15:20:57 +08:00 committed by GitHub
parent 295faa2fb9
commit 11409fceff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: