docker-archive / for-aws

92 stars 26 forks source link

Share EFS-stored volumes beetween stacks #180

Open daaru00 opened 5 years ago

daaru00 commented 5 years ago

Expected behavior

Be able to share a specific volume beetween stacks or specify the EFS directory name where volume is mounted from the docker-compose file.

Actual behavior

Documentation page describes how to do that manually creating and mounting the volume from the command line, I've not found the details about how to do the same using docker-compose syntax.

Information

Steps to reproduce the behavior

  1. create a stack A

    version: "3.4"
    services:
    web:
      image: "myimage:production"
      volumes:
            - 'shared:/shared'
      deploy:
            mode: replicated
            replicas: 4
            update_config:
                order: start-first
            placement:
                constraints: [node.role == worker]
    volumes:
    shared:
        driver: 'cloudstor:aws'
  2. create a stack B

    version: "3.4"
    services:
    web:
      image: "myimage:develop"
      deploy:
            mode: replicated
            replicas: 1
            update_config:
                order: start-first
            placement:
                constraints: [node.role == worker]
    1. (missing step) mount the shared volume from stack A to stack B
daaru00 commented 5 years ago

is this repository still supported?