docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

Database volume in docker-compose.yml

Open receter opened this issue 4 years ago • 0 comments

I checked the contents of the volume specified in docker-compose.yml and it stays emtpy. I did find the database files stored in another volume that is managed by docker.

Is the line and creation of the volume db-data unnecessary and thus can be removed or is it another configuration option thats missing?

I skimmed the docs for the MySQL container (https://hub.docker.com/_/mysql) and it seems to me that there are two options for storing the data and the option where Docker manages the storage database data is used.

Any ideas on how to fix this so the data is in db-data?

I am quite new to docker and maybe I am missing something else?

receter avatar Apr 28 '20 12:04 receter