arm mysql8.0 docker-compose
version: "3"
services:
mysql:
image: mysql/mysql-server:8.0.24
container_name: data_exchange_database
ports:
- 3306:3306
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: toor@1234
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
volumes:
- ~/work/data_exchange_mysql_dir:/var/lib/mysql
本文来自博客园,作者:vx_guanchaoguo0,转载请注明原文链接:https://www.cnblogs.com/guanchaoguo/p/17045446.html