Giter VIP home page Giter VIP logo

ecs's Introduction

To RUN two app with Redis on Local with docker-compose please follow below steps.

1.Install Docker and Docker-compose on your system.

  1. Clone Git repo into your system. git clone https://github.com/serversteam/ecs.git

  2. cd ecs-node

  3. make sure you have docker-compose.yml file downloaded from repo.

  4. Run docker-compose up -d ( this will create 2 node for app and 1 redis for storge.)

  5. to see container run docker ps ( you will see three container like below )

root@ip-172-31-52-46:/opt/node-redis-docker# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dc4d5665dbd1 ubuntu "/bin/bash" 2 hours ago Up 2 hours sad_pasteur ffa1be8a2980 wh01server/node "npm start" 4 hours ago Up 4 hours 0.0.0.0:3000->3000/tcp noderedisdocker_node-app_1 5ff127744313 redis "docker-entrypoint.s…" 4 hours ago Up 4 hours 0.0.0.0:6379->6379/tcp noderedisdocker_redis_1 7f8eee8d2f64 wh01server/azure "/entrypoint.sh /sta…" 4 hours ago Up 4 hours 443/tcp, 0.0.0.0:8080->80/tcp azure-vote-front

  1. Now you can access node and azure voting app from public IP of your instance.

Go into browser : http://public or Instance IP :3000 http://public or Instance IP :8080

you will see output like this : http://prntscr.com/iacxhk , http://prntscr.com/iacxnr

So here we Ran Successfully one node js and Azure voting sample app using docker compose on local

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.