MariaDB: dockerfile (MySQL)

Create a file docker-compose.yml with the following content:

version: '3.1'

services:
  db:
    image: mariadb:10.5
    restart: none
    environment:
      MARIADB_ROOT_PASSWORD: myPassword
      MARIADB_DATABASE: myDatabaseName
  adminer:
    image: adminer
    restart: always
    ports:
      - 3306:8080

From terminal execute the following command:

sudo docker compose up -d