Exercise
Deploy LemonMart's server infrastructure, using its docker-compse.yml
file, to AWS ECS. As a bonus, configure AWS ECS with AWS Elastic Filesystem (EFS) to persist your MongoDB data:
- Install the ECS CLI from https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.html.
- Add
mrm-task-npm-aws
scripts to the root oflemon-mart-server
. - Create a new
docker-compose.aws.yml
at version 3.0 and update it to refer to already published versions of your containers. - Using the
npm run aws:publish:compose
command, deploy your app.
You can use the Minimal MEAN project and the linked GitHub gists as a guide at https://github.com/duluca/minimal-mean#continuous-integration-and-hosting.