Fargate with Docker make up links

We have an application that uses a docker layout that contains links.

I am trying to deploy this using aws-cli on Amazon Fargate using the following command:

ecs-cli compose --project-name myApp --file docker-compose-aws.yml --ecs-params fargate-ecs-params.yml --cluster myCluster --region us-east-1 up --launch-type FARGATE

When mine fargate-ecs-params.ymlhas it ecs_network_mode: awsvpc, I get an error: Links are not supported when networkMode=awsvpc

So, I tried switching to ecs_network_mode: awsvpc, but then I got the error: Fargate only supports network mode ‘awsvpc’

My question is: how do I create a task definition for Fargate using a layout file that contains links? Or is it impossible (and in that case, what are my alternatives?)

+7
source share
1 answer

, ( -AWS), docker-compose depends.

services:
  web:
    depends_on:
      - "web_db"
  web_db:
    image: mongo:3.6
    container_name: my_mongodb

links , docker . , - : "my_mongodb".

0

Source: https://habr.com/ru/post/1692412/


All Articles