smartcow's Introduction
# Running the Application with Docker Compose ## Prerequisites - Docker - Docker Compose ####Python Backend#### for python i have created following files 1. app.py 2. requirements.txt 3. Dockerfile 1.using command "docker build -t pythonimage ." created python image 2.using command "docker run -p 80:8000 -v $(pwd):/app -- name pythonapp pythonimage" exposed to port 8000 and it is working fine. ###React Frontend ### i used follwing commands to create sys-stats directory 1. npm install -g create-react-app 2. create-react-app sys-stats 3. npm install axios #created Dockerfile for Reactapp to create image and spin-up with container edited App.js file and reactapp is working fine #in src folder created stats.js file for stats of cpuusage and memUsage check files in folder src. using command 1.docker build -it reactimage . -created docker image 2.docker run -d -p 3000:3000 --name Reactapp reactimage - created continer and reactapp is running in localhost:3000 insatlled nginx reverse proxy using dockerfile ###Deployment ### 1.using terraform created instance in aws cloud also provided user data for the instance 2.by ssh into the server, performed below tasks 1.installed minikube 2.written deployment.yml file for production done with deployment of app 3. Open your browser and go to http://localhost:90
smartcow's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.