compose-spec / compose-spec

The Compose specification

Home Page:https://compose-spec.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom shared volume path with project_name

hurvajs77 opened this issue · comments

I tryied use shared volume path for better manipulation with data (primarily for databases). But it seems doesn't work. It work only for volumes without target path definition.

I've this one:

volumes:
  db_data:
    driver: local
    driver_opts:
      type: none
      device: /Users/hurvajs/Sites/__data__ # <-- I wanna stored all DB, settings etc. on custom path, but separated by project name
      o: bind

Is possible?

Thanks for advice :-)