chriszarate / docker-compose-wordpress

An example Docker Compose setup for WordPress plugin or theme development.
162 stars 54 forks source link

Data in database is not persisted #16

Open timmartin opened 4 years ago

timmartin commented 4 years ago

I've set up an environment successfully but as far as I can tell the data in the database doesn't persist if the environment is taken down. This means that if I do a docker-compose down (e.g. to work on another project) and come back to it then I have to start again with installing Wordpress. Is this intentional?

For my own use I've created a branch where the database has a volume to persist its data. I'm happy to open a pull request if this change will be useful to others.

MikeiLL commented 4 years ago

For me the data persists. Oh, I was thinking you meant when you stop containers. When you actually destroy them. This looks like a good addition.