-1

Docker documentation is unclear about how to share a volume between containers. I don't want to have a bind volume for each container. I would like to have one volume defined and named, shared by multiple docker-compose containers. Any advice would be greatly appreciated

Jonathan Math
  • 101
  • 2
  • 7

1 Answers1

1
services:
    service-1:
        ....
        volumes:
            - volume:folder_in_container

    service-2:
        ....
        volumes:
            - volume:folder_in_container

volumes:
     volume:

I think you will be helped here :) Link

Gregor Wedlich
  • 654
  • 6
  • 14