This project is described in detail in the corresponding blog post series:
Part I: https://medium.com/analytics-vidhya/shiny-dashboards-with-flexdashboard-e66aaafac1f2
Part II: https://medium.com/analytics-vidhya/deploying-a-shiny-flexdashboard-with-docker-cca338a10d12
Shiny proxy docker image which spins up dockerized Shiny apps in a Flexdashboard HTML wrapper.
- Build the dockerimage for the example flexdashboard with
docker build -t example_dashboard .
in directory of corresponding Dockerfile. - Pull the image for the shiny demo app via
docker pull openanalytics/shinyproxy-demo
- Build the shiny_proxy dockerimage with
docker build -t shiny_proxy .
in directory of corresponding Dockerfile.
This will copy the application.yml and will need the image openanalytics/shinyproxy-demo for including a shiny demo. - Run the shiny proxy server with
docker run -d -v /var/run/docker.sock:/var/run/docker.sock --net m-net -p 3838:3838 shiny_proxy
. This maps a local volume to a directory in the docker container and maps the docker container port 3838 to your port 3838. This will run the shiny proxy server with the two example apps at localhost:3838 with a common shared container network m-net. User authentication details can be added in the application.yml.
Static HTML Flexdashboard
Same Flexdashboard with Shiny reactivity