docker-compose.yaml 474 B

123456789101112131415161718192021
  1. # Use root/example as user/password credentials
  2. version: '3.8'
  3. networks:
  4. default:
  5. external:
  6. name: wjproject-network
  7. services:
  8. wj-mysql:
  9. image: mysql
  10. # command: --default-authentication-plugin=mysql_native_password
  11. restart: always
  12. environment:
  13. MYSQL_ROOT_PASSWORD: inFish@2020
  14. MYSQL_DATABASE: train_db
  15. ports:
  16. - 13306:3306
  17. volumes:
  18. - ./conf.d:/etc/mysql/conf.d
  19. - ~/data/wj-project/mysql/data:/var/lib/mysql