Working with Database - 4: Running MS SQL Server and Webserver(Apache)+PHP App On The Amazon Elastic Container Service (ECS)

We will run Microsoft SQL Server and Apache Webserver + PHP together in the containers by using Amazon ECS. Firstly, we’ll create an Amazon Elastic Container Registry (ECR) to store and share docker images, and then deploy them into the Amazon ECS cluster. To do this, we’ll create a role: ‘ecsTaskExecutionRole’ for Amazon ECS, then create an ECS cluster, then write a ‘task definition file’ as a launcher for ECS, and finally, create the services with Amazon ECS Fargate. Thus, we’ll run both containers in Amazon ECS.
In this article, we will do all of these practically step by step by using both the AWS CLI and the AWS Management Console.

Cumhur Akkaya
10 min readOct 14, 2024

Topics we will cover in this article:

  1. Creating an Amazon ECR Private Repository
  2. Pushing Docker image to ECR Repository

--

--

Cumhur Akkaya
Cumhur Akkaya

Written by Cumhur Akkaya

✦ Multi-Cloud & DevOps Engineer, ✦Technical Writer, ✦AWS Community Builder, ✦LinkedInTop Voice, ✦Believes in learning by doing, ✦ linkedin.com/in/cumhurakkaya