title: Volume mount when setting up Wordpress with docker
body: <p><a href="https://docs.docker.com/compose/wordpress/" rel="noreferrer">Quickstart: Compose and WordPress</a> proposes the following <code>docker-compose.yml</code></p>
  
  <pre><code>version: '3.3'
  
  services:
     db:
       image: mysql:5.7
       volumes:
         - dbdata:/var/lib/mysql
       restart: always
       environment:
         MYSQL_ROOT_PASSWORD: somewordpress
         MYSQL_DATABASE: wordpress
         MYSQL_USER: wordpress
         MYSQL_PASSWORD: wordpress
  
     wordpress:
       depends_on:
         - db
       image: wordpress:latest
       ports:
         - "8000:80"
       restart: always
       environment:
         WORDPRESS_DB_HOST: db:3306
         WORDPRESS_DB_USER: wordpress
         WORDPRESS_DB_PASSWORD: wordpress
  volumes:
      dbdata:
  </code></pre>
  
  <p>For persisting database data, a volume is created:</p>
  
  <blockquote>
    <ul>
    <li>The docker volume <code>db_data</code> persists any updates made by Wordpress to the database.</li>
    </ul>
  </blockquote>
  
  <p>but nothing is mentioned about the wordpress container...</p>
  
  <p><strong>Questions:</strong></p>
  
  <ol>
  <li>should I follow the same approach and create volumes for the <code>wordpress</code> container, in order to persist the data that are going to be added (by posts, uploads, themes)?</li>
  <li>If yes, which paths / directories should I point to?</li>
  </ol>