Deploying Containers on Amazon ECS
  • 26 Dec 2023
  • 1 Minute to read
  • Dark

Deploying Containers on Amazon ECS

  • Dark

Article Summary

Two or more containers cannot be started at the same time.
For containers running on a new database, start only one first so it may set up the database, After that, start other containers one at a time.

This article will cover the steps to deploy a container onto an AWS (Amazon Web Service) environment. Containers will be created using Amazon ECS.


  • An active AWS account

Deploying container in AWS

  1. Login to AWS portal. In the search menu, search for ECS.
  2.  Select Create Cluster.
  3.  Create a cluster with the appropriate template. This example will use EC2 Linux + Networking.
  4. Configure the cluster. For more information on recommended system settings, refer to AWS's section in the Installation Guide.
  5. Once the cluster has been configured, navigate to Task Definitions.
  6.  Create a new Task Definition and select the appropriate launch type.
  7.  Under Volumes, click Add Volume for the file storage.
  8. Under Container definitions, select Add container.
  9. Specify the container name and Image. The image can be found by navigation to the Docker Repo for Decisions. For the image, it is recommended to use decisionscore/platform:latest to use the latest image for the container.
  10. Specify a Hard Limit for the container.
  11. Under Port mappings, map port 80 of the host to port 80 of the container.
  12. Under the Environment variables section, define both the required and any optional environment variables to configure the container.
  13. Once the container environment variables have been configured, specify the Mount points to be the volume that was created earlier. Map the volume to the \filestorage path of the container.
  14. Once finished, save and navigate back to the Cluster. Select Run new Task using the created task definition.

Health Check for ECS

To run the Health Check for ECS containers, run the following in CMD-SHELL. For more information, refer to HealthCheck.

curl -f http://${HOSTNAME}/home/healthcheck || exit 1
Interval: 60s
retries: 5
startPeriod: 300s
Timeout: 30s

For further information on Installation, visit the Decisions Forum.

Was this article helpful?