Skip to content

Dashboard creation using dash plotly and deploying dashboard using AWS ECS.

Notifications You must be signed in to change notification settings

yunusulucay/dash-plotly-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Deploying a Dashboard by Dash Plot using Daily Climate Dataset

The dashboard has been created using Plotly's Dash library. There are 3 options in the dashboard. You can select plot types using radio buttons. In this dashboard I plotted histogram, line and scatter plots of dailyClimate dataframe. You can use another dataframe. But be careful on dataframe's index.

line_plot

Quick Usage

I assume docker is installed on your system. Go to Dockerfile directory and open terminal. Write docker build -t {image_name} . here with -t you can determine name of the image. After image creation process done you can see images writing docker images to terminal. Run container docker run -p 8050:8050 {image_name}. And go to your browser and go to localhost:8050. If you want docker to run background use detach mode. docker run -d -p 8050:8050 {image_name}. Additionally image ID can be used instead of image name.

DataFrame Overview

Dataframe that I used in this project.

dataframe_head

Deploying Docker on AWS

deploy_graph

Create docker image using Dockerfile. Send the image to ECR. On ECS, using ECR image deploy the dockered container. [1]

Sources

https://faun.pub/quick-start-guide-to-docker-fa646e0f3f2d

[1] https://towardsdatascience.com/deploying-a-docker-container-with-ecs-and-fargate-7b0cbc9cd608