Configuring ECS task definition containers

The ECS task definition configured earlier includes a ContainerDefinitions property, which defines a list of one or more containers associated with the task definition. You can see that there are two containers defined:

  • todobackend container: This is the main application container definition.
  • collectstatic container: This container is a short lived container that runs the python3 manage.py collectstatic command to generate local static web files. An important configuration parameter associated with this container is the Essential property, which defines whether or not ECS should attempt to restart the container if it should fail or exit (in fact, ECS will attempt to restart all containers in the ...

Get Docker on Amazon Web Services 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.