---
title: "Deploying Containers on AWS"
slug: "deploying-containers-on-aws-1"
tags: ["containers", "docker"]
updated: 2025-06-06T13:21:38Z
published: 2025-06-06T13:21:38Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying Containers on Amazon ECS

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.  

---

## Overview

This article will cover the steps to deploy a container onto an AWS (Amazon Web Service) environment. Containers will be created using[Amazon ECS](https://docs.aws.amazon.com/ec2/index.html?nc2=h_ql_doc_ec2).

---

### Prerequisite:

- An active AWS account

---

## Deploying container in AWS

1. Login to AWS portal. In the search menu, search for ECS.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645802228700.png)
2. Select **Create Cluster.**![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645802421736.png)
3. Create a cluster with the appropriate template. This example will use **EC2 Linux + Networking.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645802555142.png)**
4. Configure the cluster. For more information on recommended system settings, refer to AWS's section in the [Installation Guide](https://documentation.decisions.com/v9/docs/installation-guide#aws-connection:~:text=Next%20to%20proceed.-,Database%20Setup,-The%20app%20server).
5. Once the cluster has been configured, navigate to **Task Definitions**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645803255966.png)
6. Create a new Task Definition and select the appropriate launch type.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645803312829.png)
7. Under **Volumes**, click Add Volume****for the file storage.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645803518325.png)
8. Under **Container definitions,**select **Add container**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645803603440.png)
9. Specify the container name and Image. The image can be found by navigation to the [Docker Repo for Decisions](https://hub.docker.com/r/decisionscore/platform/). 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.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645803823888.png)
12. Under the **Environment variables** section, define both the required and any optional [environment variables](https://documentation.decisions.com/docs/environment-variables-1) 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.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1645804361376.png )
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](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html).

```shell
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](https://community.decisions.com/categories/InstallationSetup).
