version: "3" services: db: image: mariadb:10.5 ports: - ${DB_PORT}:3306 volumes: - ./mysql:/var/lib/mysql environment: - MARIADB_DATABASE=${DB_NAME} - MARIADB_USER=${DB_USER} - MARIADB_PASSWORD=${DB_PASSWORD} - MARIADB_ROOT_PASSWORD=${DB_PASSWORD}