# Use root/example as user/password credentials
version: '3.1'

services:

  db:
    image: mysql:5.7
    command: --default-authentication-plugin=mysql_native_password --innodb_large_prefix=OFF
    environment:
      MYSQL_ROOT_PASSWORD: root 
    expose:
      - "3306"
    ports:
      - "3307:3306" 

