How to make Docker-compose restore mysql database?

0

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 ....

    
asked by anonymous 11.02.2018 / 21:14

0 answers