I was able to set up a volume for mysql, with the following line in the Dockerfile of the Mysql container.
VOLUME /data/mysql:/var/lib/mysql
The folder is created and inside it in the host machine, the mysql files appear la, create the database, and everything works OK, but when I restart the mysql container, the database disappears ....