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
posted @ 2023-01-12 09:03  vx_guanchaoguo0  阅读(59)  评论(0编辑  收藏  举报