title: docker-compose volume is empty even from initialize
body: <p>I try to create a docker-compose image for different website.</p>
  
  <p>Everything is working fine except for my volumes.</p>
  
  <p>Here is an exemple of the <code>docker-compose.yml</code>:</p>
  
  <pre><code>version: '2'
  
  services:
    website:
      build: 
          context: ./dockerfiles/                                        
          args:                                                                      
              MYSQL_ROOT_PASSWORD: mysqlp@ssword 
      volumes:
          - ./logs:/var/log
          - ./html:/var/www
          - ./nginx:/etc/nginx
          - ./mysql-data:/var/lib/mysql
      ports:
          - "8082:80"
          - "3307:3306"
  </code></pre>
  
  <p>Anf here is my <code>Dockerfile</code>:</p>
  
  <pre><code>FROM php:5.6-fpm
  
  ARG MYSQL_ROOT_PASSWORD
  
  RUN export DEBIAN_FRONTEND=noninteractive; \
  echo mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD | debconf-set-selections; \
  echo mysql-server mysql-server/root_password_again  password $MYSQL_ROOT_PASSWORD | debconf-set-selections;
  
  RUN apt-get update &amp;&amp; apt-get install -y -q mysql-server php5-mysql nginx wget
  
  EXPOSE 80 3306
  
  VOLUME ["/var/www", "/etc/nginx", "/var/lib/mysql", "/var/log"]
  </code></pre>
  
  <p>Everything is working well, expect that all my folders are empty into my host volumes. I want to see the nginx conf and mysql data into my folders.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>EDIT 1 :
  Actually the problem is that I want docker-compose to create the volume in my docker directory if it not exist, and to use this volume if it exist, as it is explain in <a href="https://stackoverflow.com/a/39181484">https://stackoverflow.com/a/39181484</a> . But it doesn't seems to work.</p>