Deploying the compose file to the cluster

The ecs-cli compose service up command deploys a Docker compose file to a cluster. The command may optionally be parameterized with the command options discussed in this table:

Parameter

Description

Default value

--project-name

Project name

The current directory

--ecs-params

ECS params file to use

The ecs-params.yml in the current directory

--create-log-groups

Creates CloudWatch Log groups for container logs

 

--file

Docker compose file

The docker-compose.yml file in the current directory

 

Run the following command in which the --project-name and --create-log-groups options are used. We don’t need to use the other options, as the required files are in the ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.