There is an example of .env
which has the following format to be used with Docker-Compose.
DB_HOST=<DOCKER_COMPOSE_SERVICE>
DB_NAME=<MYSQL_DATABASE>
DB_USER=<MYSQL_USER>
DB_PASS=<MYSQL_USER_PASSWORD>
- Clone this repository with
git clone
. - Bring up and wait for its ready:
docker compose up --build
- Access your browser with URL
http://localhost:8080
. - Bring down once done:
docker compose down
- An AWS Account
- AWS services deployment
- Amazon RDS for MySQL DB
- Amazon ECR repository
- Amazon ECS Cluster with Fargate
- AWS CodeBuild
- AWS CodeDeploy
- AWS CodePipeline
The folder ./aws/rds/
includes:
user.sql
: The preload script that we must prepare inside our RDS MySQL DB.
The folder ./aws/codebuild/
includes:
buildspec.yaml
: The build specification that we build our Node application and push to an Amazon ECR repository.
This folder ./aws/codedeploy/
includes:
appspec.yaml
: The file is used by CodeDeploy to determine our ECS task definition.taskdef.json
: The file includes necessary information for our ECS task definition during the creation and CodeDeploy process.