docker-compose.yml 317 B

12345678910111213
  1. version: '3.8'
  2. services:
  3. mysql:
  4. image: mysql:8.3.0
  5. command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
  6. environment:
  7. - MYSQL_ROOT_PASSWORD=wss123
  8. - MYSQL_LOWER_CASE_TABLE_NAMES=0
  9. ports:
  10. - "3306:3306"
  11. volumes:
  12. - ./data/mysgl:/var/lib/mysql