Comments (2)
@Rfferrao87 The issue you described seems to be an architectural limitation due to the fact that in AWS, a single EFS (Elastic File System) filesystem can have multiple mount targets, but these must be in different subnets. If your compose file is trying to create two mount targets in the same subnet for the same EFS filesystem, it would indeed cause an error.
A possible solution to this could be to modify the ECS Compose conversion process to support using multiple access points on a single EFS filesystem. Each access point provides a specific directory on the filesystem and can enforce a certain POSIX user and group ID. This way, you can create a unique access point for each volume in your Docker Compose file, while still using the same mount target.
Here is the general outline of the steps you might take:
-
When converting from the Docker Compose file to CloudFormation, if multiple volumes are identified that refer to the same EFS filesystem, create a single mount target for them.
-
For each volume, create a unique EFS access point. Set the FileSystemId to your EFS filesystem ID and the Path to the specific directory for that volume.
-
Modify your Docker Compose file to mount the volume from the access point, not directly from the EFS filesystem.
from compose-cli.
@Adesoji1 I appreciate the idea, but I'm almost 100% sure I tried this before; problem is that Docker Compose's ECS Integration currently only supports linking to an external File System rather than an Access Point, at least as far as I'm aware. If there's another way to point directly to an Access Point I'd appreciate if you could share this method (regarding the docker-compose.yml
syntax).
from compose-cli.
Related Issues (20)
- se map a volume
- ECS: Is there a way to deploy on existing loadbalancers, target groups and rules? HOT 4
- Feature Request: support emptyDir volume type for Azure ACI HOT 2
- `docker compose` using ecs context does not create the correct EFS performance-mode HOT 2
- Adding "path pattern" ALB Listener Rules for ECS HOT 1
- Limited Docker CLI functionality in Azure Context (ACI)
- Possibility to mark ECS containers as non essential HOT 3
- Linux install script fails regularly HOT 1
- ECS: Allow toggling AssignPublicIp HOT 3
- error decoding 'Ports': Invalid containerPort: 8080 HOT 1
- AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set
- Prepare Development Server with Cloudformationt template : Prepare development server on Amazon Linux 2 (t3a.medium) for developers, enabled with `Docker`, `Docker-Compose`, `Java 11`, `Git`.
- ECS: TaskRoleARN + service.volumes -- wrong Node Kind for expected: MappingNode was ScalarNode
- ECS support broken under Linux with ""docker context create" requires exactly 1 argument." error HOT 1
- Windows named pipe error after updating Docker to latest version
- Docker compose networking doesn't work any more HOT 5
- Docker Compose’s integration for ECS and ACI is retiring in November 2023. HOT 11
- incorrect warning when logging into ECR
- Error DT1001 Docker Compose's integration for ECS and ACI will be retired in November 2023. Learn more: https://docs.docker.com/go/compose-ecs-eol/ docker-compose C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 204 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-cli.