compose-spec icon indicating copy to clipboard operation
compose-spec copied to clipboard

Custom shared volume path with project_name

Open hurvajs77 opened this issue 10 months ago • 0 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 :-)

hurvajs77 avatar Apr 28 '24 00:04 hurvajs77