title: ECS Fargate does not support bind mounts
body: <p>I am trying to deploy a nodejs docker-compose app into aws ecs, here is how my docker compose file looks -</p>
  <pre><code>version: '3.8'
  
  services:
   sampleapp:
    image: jeetawt/njs-backend
    build:
     context: .
    ports:
     - 3000:3000
    environment:
     - SERVER_PORT=3000
     - CONNECTIONSTRING=mongodb://mongo:27017/isaac
    volumes:
     - ./:/app
    command: npm start
  
   mongo:
    image: mongo:4.2.8
    ports:
     - 27017:27017
    volumes:
     - mongodb:/data/db
     - mongodb_config:/data/configdb
  volumes:
   mongodb:
   mongodb_config:
  </code></pre>
  <p>However when i try to run it using docker compose up after creating ecs context, it throws below error -</p>
  <pre><code>WARNING services.build: unsupported attribute        
  ECS Fargate does not support bind mounts from host: incompatible attribute
  </code></pre>
  <p>I am not specifying any where that I would like to use <code>Fargate</code> for this. Is there any way I can still deploy the application using ec2 instead of <code>Fargate</code>?</p>