**TLDR**

In `docker-compose`, what's the difference between

```
volumes:
    - type: volume
      source: mydata
      target: /data

```

and

```
volumes:
    - type: bind
      source: mydata
      target: /data

```

?

**The question in long:**

When you specify the `volumes` option in your `docker-compose` file, you can use the [long-syntax style](https://docs.docker.com/compose/compose-file/)

According to the docs, the `type` option accepts 3 different values: **`volume`**, **`bind`** and **`tmpfs`**:

I understand the `tmpfs` option - [it means that the volume will not be saved after the container is down.](https://docs.docker.com/v17.09/engine/admin/volumes/tmpfs/#choosing-the-tmpfs-or-mount-flag).

But I fail to find any reference in the docs about the difference between the other 2 options: `bind` and `volume`, could someone enlighten me about that?