version: "3"
services:
mysql:
image: beercan1989/arm-mysql:latest
container_name: data_exchange_database
ports:
- 3306:3306
environment:
TZ: Asia/Shanghai
MYSQL_USER: mysql
MYSQL_PASSWORD: lqsym@12345
MYSQL_ROOT_PASSWORD: toor@1234
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M
--sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO"
volumes:
- ~/work/data_exchange_mysql_dir:/var/lib/mysql
标签:compose,NO,--,MYSQL,ZERO,mysql8.0,mysql,docker,arm
From: https://www.cnblogs.com/guanchaoguo/p/17045446.html