Skip to content

Repository contains example application with PaaS, SaaS & IaaS

Notifications You must be signed in to change notification settings

Raghav2211/todo-app-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO APP INFRA

Terraform Check Docker compose Validate K8s Deployment validate

Repo contain IAC to deploy todo-app in different environment

TASK LIST

  • 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

Deploy

  1. 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 ``
  2. On swarm cluster using docker stack Swarm

  3. On k8s using minikube K8s

  4. On EC2 using packer EC2

  5. On EKS EKS