Volumes-from in Drone

Hi all!

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

  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

How about using workspace

+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

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