- Setting up Shinyproxy via docker compose
- Customizing the home page via a template (see
shinyproxy/fragments/navbar.html
) - Deploying a "proxy" app that forwards the traffic to the "global" app, which is deployed via docker compose service
- Clone this repo to a local directory, e.g.
/usr/wd/shinyproxy-docker-compose-example
- Copy the shinyproxy jar file (downloaded from shinyproxy.io) to
./shinyproxy/shinyproxy.jar
- Download the most recent version of shinyproxy (e.g. shinyproxy-2.5.0.jar from https://www.shinyproxy.io/downloads/shinyproxy-2.5.0.jar).
- Rename the .jar file as shinyproxy.jar
- Move the file to shinyproxy-docker-compose-example/shinyproxy/shinyproxy.jar
- You may want to tweak
docker-compose.yml
andshinyproxy/application.yml
- Run
docker-compose build
to build the necessary images - Run
docker-compose up -d
to launch the apps - Direct to http://127.0.0.1:8080, you should see the shinyproxy running.
app-normal
: This is a regular shinyproxy app. Each user will have his/her own apps. It means a new docker container will be lanuched for each user.app-in-compose
: This is like a shiny server app. This app is only lanuched once by docker compose. Shinyproxy will only run a "proxy" (nginx based) container, which redirect the traffic to the "global" app.app-not-in-compose
: The underlying app is the same asapp-in-compose
, except that it's like a normal shinyproxy app, so different user doesn't share the same global environment.