docker-compose中mysql设置

mysql:image:mysql:8.0.20container_name:mysql.6606#容器名command:--default-authentication-plugin=mysql_native_password--character-set-server=utf8mb4--collation-server=utf8mb4_general_ci--max_connections=1000restart:alwaysenvironment:-MYSQL_ROOT_PASSWORD=Dahai@21cn-MYSQL_USER=test-MYSQL_PASSWORD=Dahai@21cnports:-'6606:3306'volumes:-"/data/docker/mysql/data/db:/var/lib/mysql"-"/data/docker/mysql/data/conf:/etc/mysql/conf.d"

Title - Artist
0:00