Giter Site home page Giter Site logo

ziyehan / dockercomposeproject Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.58 MB

I made this project to practice my docker-compose knowledge. It should not be used for interview purpose.

Dockerfile 15.42% Python 53.53% HTML 12.70% JavaScript 18.35%

dockercomposeproject's Introduction

Introduction

Scenario

Assume we have N virtual cameras, each records a event to redis every 10 seconds. Each camera has a long-polling with the API server. Once a user request for camera log from web page, the server let that camera know (I used Pushpin, so it is pub-sub), then that camera instantly start a new HTTP request to send log to the API server, at that time that log should also be stored to disk DB. The long-polling should refresh every 1 min.

Image of Architecture

How to run

step1: download or git clone this project

step2: make sure you have the docker engine installed already

step3: go inside the folder, run "docker-compose up" in the terminal

step4: wait until no more promoted logs, then open another new terminal, run "open -a Google\ Chrome --args --disable-web-security --user-data-dir=" (because Chrome has some cross-domain restrictions)

step5: in the opened browser, open "localhost:8000/admin.html", enjoy

dockercomposeproject's People

Contributors

ziyehan avatar

Stargazers

 avatar

Watchers

James Cloos 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.