Repo contain IAC to deploy todo-app in different environment
- Todo App deployment on local using docker-compose
- Todo App deployment on local using swarm
- Todo App deployment on local k8s using Helm
- Todo App deployment on AWS on EC2
- Todo App deployment on AWS using eks
-
Deployment using docker-compose
-
Install
$ docker-compose --env-file=env/<env>/Docker.env up -d # Override default docker-compose configuration $ docker-compose --env-file=env/<env>/Docker.env -f docker-compose.yaml -f env/<env>/docker-compose-override.yml up -d
-
Access
http://localhost:8081 # get access_token
http://localhost:8080/webjars/swagger-ui/index.html # use access_token to access the API(s)
-
Uninstall
$ docker-compose down
Configuration
The following table lists the configurable parameters of the TodoApp swarm cluster and their default values.
Parameter Description Default TODO_IMAGE
Image tag for Todo-App `` EDGE_SERVICE_IMAGE
Image tag for Edge Service `` CONFIG_SERVER_IMAGE
Image tag for Config Server `` MONGO_DATA_SRC_PATH
Host path for persistence mongo data `` -
-
On swarm cluster using docker stack Swarm
-
On k8s using minikube K8s
-
On EC2 using packer EC2
-
On EKS EKS