version: '3'services: db: image: docker.io/mysql:5.7 container_name: db volumes: - /home/vagrant/docker-compose/spring-boot-compose/enjoy-dir/mysql/data:/var/lib/mysql - /home/vagrant/docker-compose/spring-boot-compose/enjoy-dir/mysql/logs:/var/log/mysql environment: MYSQL_ROOT_PASSWORD: root MYSQL_USER: 'test' MYSQL_PASS: 'test' command: --default-authentication-plugin=mysql_native_password restart: always
2 回答
- 2 回答
- 0 关注
- 4956 浏览
添加回答
举报
0/150
提交
取消