Laravel App on AWS Fargate Demo
A simple Laravel app based on laravel demo application.
A simple nginx image with some modification.
You need to have:
- Docker installed
- AWS Account
Disclaimer: Deploying on Fargate will incur charges for your AWS account.
- Build images for both laravel-app and nginx-web.
- Push the images to your ECR repositories.
- Create a Fargate cluster.
- Write a TaskDefinition:
- Make sure to include both images in Containers Definition.
- Also create a shared Volume and mount at "/var/www".
- Finally, you can either run the Task or create a Service to make sure your app keep running.
For more detailed information you can read the article here: https://medium.com/@yosi.pramajaya/multi-containers-app-on-aws-fargate-e86d9dc6e207