title: How do I retain my content types within a dockerized strapi
body: <p>I've been using strapi for docker (<a href="https://github.com/strapi/strapi-docker" rel="noreferrer">https://github.com/strapi/strapi-docker</a>), but whenever I rebuild my container the data all disappears. I can still see it in the database, but the admin isn't recognizing it.</p>
  
  <p>I tried recreating the content type, and then the records from the database appeared, but when I rebuild the container again the content type disappears</p>
  
  <p>Where are content definitions stored? Is this a bug with the app? (I think strapi-docker is using an alpha release)</p>
  
  <p>How to I get strapi to retain my content definitions in the database, so I can use a stateless container?</p>
  
  <p>UPDATE</p>
  
  <p>I tried looking at the attached volume - </p>
  
  <pre><code>  api:
      build: .
      env_file: './dev.env'
      ports:
        - 1337:1337
      volumes:
        - ./strapi-app:/usr/src/api/strapi-app
        #- /usr/src/api/strapi-app/node_modules
      restart: always
  </code></pre>
  
  <p>But there's nothing in it - </p>
  
  <pre><code>Aidans-MacBook:strapi-docker aidan$ docker ps
  CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS                    NAMES
  02b098286ada        strapi-docker_api   "docker-entrypoint.s…"   24 minutes ago      Up 5 minutes (healthy)   0.0.0.0:1337-&gt;1337/tcp   strapi-docker_api_1
  Aidans-MacBook:strapi-docker aidan$ docker inspect -f "{{.Mounts}}" 02b098286ada
  [{bind  /Users/aidan/Documents/Code/beefbook/strapi-docker/strapi-app /usr/src/api/strapi-app  rw true rprivate}]
  Aidans-MacBook:strapi-docker aidan$ ls /Users/aidan/Documents/Code/beefbook/strapi-docker/strapi-app
  Aidans-MacBook:strapi-docker aidan$ 
  </code></pre>