Skip to content

openanalytics/shinyproxy-mesop-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running Mesop apps inside ShinyProxy

This repository demonstrates how to run Mesop apps inside ShinyProxy.

Building the Docker image

In order to run your Mesop app inside ShinyProxy, it should be packaged as a Docker image.
We use a gunicorn WSGI server to run the Mesop app inside the Docker container as by default, mesop runs a flask dev server that is not suitable for production use.
We provide an example Dockerfile that demonstrates how to build the Docker image for a very simple Mesop app. To build the Docker image, run the following command:

docker build -t openanalytics/shinyproxy-mesop-demo .

ShinyProxy configuration

Create a ShinyProxy configuration file (see application.yml for a full example), containing:

proxy:
  specs:
    - id: mesop
      display-name: Mesop
      container-image: openanalytics/shinyproxy-mesop-demo
      port: 8888
      target-path: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}"
      container-env: 
        MESOP_BASE_URL_PATH: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}"

Screenshots

(c) Copyright Open Analytics NV, 2026.

Contributors

Languages