services:
mariadb:
image: mariadb:10.5.8-focal
env_file:
- .env
volumes:
- .data/mariadb:/var/lib/mysql
- .docker/mysql/init/:/docker-entrypoint-initdb.d/
ports:
- "3308:3306"
having an init script.sql
CREATE DATABASE 'biostar';
grant all privileges on *.* to 'root'@'172.18.0.3' identified by 'biostar';
grant all privileges on *.* to 'biostar'@'172.18.0.3' identified by 'biostar';
expected: a db with name biostar
actual: no extra db, just the default ones
script.sqllocated? Is it in${PWD}/.docker/mysql/init?