title: Issue mounting docker volume with docker-compose
body: <h2>My Scenario</h2>
  
  <p>I am trying to build docker swarm with <code>docker-compose.yml</code> file</p>
  
  <pre><code>version: '3'
  
  services:
    myapp-nginx:
      image: nginx:1.10
      volumes:
       - ./nginx/certs:/etc/nginx/certs
      ports:
        - 80:80
        - 443:443
  </code></pre>
  
  <p>using build command as below  </p>
  
  <pre><code>$ docker stack deploy --compose-file docker-compose.yml myapp
  
  Creating network myapp_default
  Creating service myapp_myapp-nginx
  </code></pre>
  
  <p>My system have <code>Docker Version 17.03.1-ce-mac5 (16048)</code></p>
  
  <h2>Problem</h2>
  
  <p>Volumes mounts are not working, If I comment out <code>volumes:  - ./nginx/certs:/etc/nginx/certs</code> then everything works fine.</p>
  
  <p>Otherwise nginx doesn't work at all, I see</p>
  
  <pre><code>CAGTAM1059934:docker iskumar$ docker stack ps myapp
  ID            NAME                  IMAGE       NODE      DESIRED STATE  CURRENT STATE            ERROR                             PORTS
  efjia8b7y6jd  myapp_myapp-nginx.1      nginx:1.10  manager1  Ready          Rejected 5 seconds ago   "invalid mount config for type…"  
  c9c6ogh11osi   \_ myapp_myapp-nginx.1  nginx:1.10  worker2   Shutdown       Rejected 10 seconds ago  "invalid mount config for type…"  
  iveikxpnbq6x   \_ myapp_myapp-nginx.1  nginx:1.10  worker1   Shutdown       Rejected 15 seconds ago  "invalid mount config for type…"  
  </code></pre>
  
  <p>Is there any special way to mount volumes in docker-compose v3?</p>