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 | The current directory |
| ECS params file to use | The |
| Creates CloudWatch Log groups for container logs |
|
| Docker compose file | The |
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 current directory:
ecs-cli compose --project-name hello-world service up --create-log-groups
The Docker compose file gets deployed on the hello-world
cluster. The output from the command is shownhere:

The hello-world
cluster lists one running task, as shown here:

Click on the hello-world
cluster link to display its...