DEV Community

Discussion on: How to setup a Wordpress or Drupal site locally with DDEV

Collapse
 
kujiranoai profile image
Kujiranoai • Edited

Hi this is interesting thanks. I’m a bit new, so I might not get this quite right.

I understand docker is stateless, so I’m guessing that if you deployed a Wordpress site to the cloud you couldn’t then actually edit any posts etc while it was in running in the cloud, as if your container stopped then you would lose the new posts or other edited data.

Therefore if you ever wanted to run a dockerized Wordpress site in the cloud (for example on Google cloud run) you would have to make your changes - new posts etc - locally, and then deploy (in which case your article is probably a great help to make things easier).

Does this sound right to you?

I guess another alternative might be to have Wordpress in a container but with its database as a MySQL mounted volume and not containerized, but that sounds complicated to a beginner like me…?!

Anyway, thanks for the article.