Docker Community Forums

Share and learn in the Docker community.

Keep data inside Docker container and versoning it


(Eriksenonline) #1

I have a development setup for magento.
This contains on a db, web, redis, percona and php container.

In the DB container for my development machine I do not mount the sql volume I keep the db data inside the container. When needed I upload a new development database to the container and use docker-commit and push to make a new tag for this.

For the media catalog it is a bit harder. This catalog have to be in a volume it must be shared between several services / containers. This because I test different setup, scaling etc…

In no way I am able to find a way I can make the media files stay inside one container and make all the other containers acces that data. I want to be able to version the development media dir the same way I do with the DB.

Any idea what to read up on to get this working?