# Volumes-from in Drone

**URL:** <https://drone.discourse.group/t/volumes-from-in-drone/6042>\
**Category:** Drone Support\
**Created:** [November 6, 2017, 1:51pm UTC](https://drone.discourse.group/t/volumes-from-in-drone/6042 "2017-11-06T13:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joasilva](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/joasilva/32/3676_2.png) [@joasilva](https://drone.discourse.group/u/joasilva)\
**Post date:** [November 6, 2017, 1:51pm UTC](https://drone.discourse.group/t/volumes-from-in-drone/6042/1 "2017-11-06T13:51:28Z")

</div>

Hi all!

I’d like to run the following services in Drone:

```auto
  shared:
    image: "attxproject/unified-views-shared:stable-1.2"
  mysql:
    image: "attxproject/unified-views-mariadb:stable-1.2"
    environment:
       - MYSQL_ROOT_PASSWORD=iamroot! 
  backend:
    image: "attxproject/unified-views-backend:stable-1.2"
    environment:
      - MUSER=user
      - MPASS=password
    volumes-from:
      - shared
  frontend:
    image: "attxproject/unified-views-frontend:stable-1.2"
    volumes-from:
      - shared

```

Notice that the “shared” image creates a volume container which is then used by “frontend” and “backend”.

But the question is: how to use “volumes-from” in Drone?

Cheers,

João

---

<div class="post-metadata">

**Author:** ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)\
**Post date:** [November 6, 2017, 11:24pm UTC](https://drone.discourse.group/t/volumes-from-in-drone/6042/2 "2017-11-06T23:24:42Z")

</div>

How about using [workspace](http://docs.drone.io/workspace/#app-drawer)

```diff
+workspace:
+ base: /shared
 shared:
    image: "attxproject/unified-views-shared:stable-1.2"
+ volumes:
+ - /shared:/shared
  mysql:
    image: "attxproject/unified-views-mariadb:stable-1.2"
    environment:
       - MYSQL_ROOT_PASSWORD=iamroot! 
  backend:
    image: "attxproject/unified-views-backend:stable-1.2"
    environment:
      - MUSER=user
      - MPASS=password
+ volumes:
+ - /shared:/shared
  frontend:
    image: "attxproject/unified-views-frontend:stable-1.2"
+ volumes:
+ - /shared:/shared

```

I didn’t test it, but let me know if it is helpful

---

<div class="post-metadata">

**Author:** ![sravan1265](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/sravan1265/32/4056_2.png) [@sravan1265](https://drone.discourse.group/u/sravan1265)\
**Post date:** [April 18, 2018, 11:12am UTC](https://drone.discourse.group/t/volumes-from-in-drone/6042/3 "2018-04-18T11:12:29Z")

</div>

One doubt from your configure file

How did you configured volumes in .drone.yml file…?

Can you explain me briefly about how to configure volumes and how to sue in .drone.yml file
