# Use root/example as user/password credentials version: '3.8' networks: default: external: name: wjproject-network services: wj-mysql: image: mysql # command: --default-authentication-plugin=mysql_native_password restart: always environment: MYSQL_ROOT_PASSWORD: inFish@2020 MYSQL_DATABASE: train_db ports: - 13306:3306 volumes: - ./conf.d:/etc/mysql/conf.d - ~/data/wj-project/mysql/data:/var/lib/mysql