Hi@akhtar,
To configure mysql database using docker-compose, you have to use yml language to write your code. Here is an example given bellow.
version: '3'
services:
   mysql:
      image: mysql:latest
      environment:
        MYSQL_ROOT_PASSWORD: redhat
        MYSQL_USER: username
        MYSQL_PASSWORD: password
      restart: always
$ docker-compose up
It will create one mysql container.