Skip to content

wheeldogg/docker-django-auth-shiny

Repository files navigation

Docker example with NginX + Auth-Request module proxying to auth-acting Django server for Shiny app

This is a Docker setup for a Django application acting as an authentication and authorization server for a Shiny application, through the NginX reverse-proxy and auth-request module.

  • We use NginX as reverse proxy.
  • We use auth-request module to add an authorization step for each request directed to Shiny.
  • The initial Shiny application main page is wrapped into a Django-powered page, so we can build an interface above Shiny, with user and access rights management.

A Makefile is available for convenience. You might need to use sudo make instead of just make because docker and docker-compose commands often needs admin privilege.

Requirements

You need to install Docker and Docker-Compose.

Build

sudo make all.

Run

sudo make up.

Help

make or make help.

Related blog post

Django application as an authentication / authorization server for Shiny

Note it was important to change the build shiny-app to use a different image.

The ubuntu image was not working (R was not recognized. Thus, I used the example dockerfile below). https://www.shinyproxy.io/deploying-apps/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published