Code Monkey home page Code Monkey logo

iris_systems_task's Introduction

iris_systems_task

Features

  • Based on Rails app Shopping-App-IRIS
  • All services are containerized.
  • Nginx for reverse proxy and load balancing.
  • Uses docker-compose.
  • Can scale with load balancing using Nginx.
  • Mysql data and Nginx conf file are persisted using volumes.
  • Just Nginx entry port is exposed to host and other services communicate intternally in docker network.
  • Nginx rate limiting added (set to 1000r/s).

Steps

  1. Clone this repo.
git clone https://github.com/shivamanipatil/iris_systems_task.git
  1. Build the images for containers.
sudo docker-compose build
  1. Spins the containers.
docker-compose up --scale web=3

Launches 3 instaces of rails application load balanced by Nginx.

  1. For the first time create and run migrations for the database for rails.
docker-compose run --rm web rake db:create db:migrate
  1. Application is live on localhost:8080
  2. For daily(at 00:00 can be changed) database dump with name as shop1_development_date_time in created db_dump directory, add this line to crontabfile (maybe use crontab -e)
@daily docker-compose exec db /usr/bin/mysqldump -u root --password=complexpassword shop1_development > ~/db_dump/shop1_development_`date '+%Y_%m_%d__%H_%M_%S'`.sql

iris_systems_task's People

Contributors

shivamanipatil avatar vithikshah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.