Home / Companies / Strapi / Blog / Post Details
Content Deep Dive

How to Deploy Strapi Docker Container On AWS Elastic Beanstalk

Blog post from Strapi

Post Details
Company
Date Published
Author
Omar Khairy
Word Count
2,211
Language
English
Hacker News Points
-
Summary

This tutorial guides on deploying a Strapi application as a Docker container in AWS Elastic Beanstalk, connected to PostgreSQL in Relational Database Service. To start, create a new project using the command `npx create-strapi-app my-project --template blog`, then configure the database connection to use PostgreSQL. Next, create two Dockerfiles for development and production environments, and use Docker-Compose to simplify the process of building and running multiple containers. After that, deploy the image in Elastic Beanstalk by creating a Dockerrun.aws.json file and uploading it to an S3 bucket. Finally, automate deployment using AWS CLI and GitHub Actions.