-
Notifications
You must be signed in to change notification settings - Fork 252
mounting EFS volume in multiple services fails #1054
Comments
Thanks for reporting this issue, I'll look into this tomorrow on business hours. |
While I can reproduce this issue, a workaround can be to use
Docker compose will skip EFS volume creation and just use the existing one. |
I tried to run your sample compose.yaml file and get a successful deployment. @liannario this syntax is valid but should be used for EFS filesystem you created, but |
I tried to create a stack directly in CloudFormation with the template resulting from docker compose convert and it worked. If I use I can see in the CloudFormation template the EFS resources are declared only once (as expected). |
as |
Thank you both for responding. I tried the compose up command in a new region and so on the default vpc and it worked. When I run it on abnother VPC which was created using terraform it failed with a fsmt error after timing out on delete (20 minutes) terraform to make repeatable vpc
compose file with vpc specified
cloud formation from docker compose convert
EDIT: The cloud formation seems to be targetting private subnets too.
|
ECS integration does not support (yet) multiple subnets per availability zone. |
So, is that the issue. When I create my own application load balancer ans specify it with the tag in the compose file the EFS also does not support public and private subnets? |
In the current implementation we collect all subnets from the configured VPC and this create such configuration issues. I'm looking into selecting only the public subnets, but AWS API doesn't make this trivial. Private subnets don't make much sense as this would prevent the service to pull required sidecar images from DockerHub. |
I came across this error message in my tests and opened a dedicated issue: #1490 |
I had this same issue and it was resolved by changing the volume name. I had used the same volume name in another region, i guess there was a conflict. |
Currently when you author a compose file with a volume mount going to two different services you get the below error on running docker compose up due to duplicate mounting in subnets.
This ticket is a feature request to support mounting between services using volume EFS.
fsmt-1d7dc3ec already exists in stack arn:aws:cloudformation:eu-west-2:xxxx:stack/play/sdfgfd-3cc8-11eb-af6f-dsfgfd
Example compose file
The text was updated successfully, but these errors were encountered: