This example is very similar to example '01-standalone-docker-engine', except that it connects to a docker swarm instead of a single-machine docker engine. As a result, when you launch a Shiny app, its container may run on any node in the docker swarm, at the swarm's discretion.
- Download ShinyProxy
- Download the
application.yml
configuration file from the folder where this README is located. - Place the jar and yml files in the same directory, e.g.
/home/user/sp
- Open a terminal, go to the directory
/home/user/sp
, and run the following command:
java -jar shinyproxy.jar
- ShinyProxy will listen for HTTP traffic on port
8080
. - ShinyProxy connects to the Docker daemon using a Unix socket, make sure the user running ShinyProxy has permission to use this socket.