Skip to content

Commit

Permalink
adapted docs to new features
Browse files Browse the repository at this point in the history
  • Loading branch information
mbannert committed Nov 22, 2024
1 parent 4d66343 commit c31cefe
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To start shiny from inside your R session, simply run

```r
library(shiny)
runApp()
runApp('shiny-home')


```
Expand All @@ -17,6 +17,9 @@ from the document root of this repository.

## Run on Shiny Server via Docker


> !! ARM Users (i.e., first and foremost Apple M1 and M2 Macs) remember that shiny images are not built for ARM yet. To fix this, use --platform linux/amd64 to run with an emulated image otherwise docker won't find an image for you.
You can run shiny in different server setups when you think about exposing your work beyond local R sessions.
Here are a few common approaches:

Expand All @@ -42,6 +45,13 @@ In that case a first time start would take a little longer because of the downlo
Note the port forwarding that maps port 1234 of your localhost (dockerhost) to port 3838 inside the container which is the standard port for shiny server.


## A Slightly More Realistic Docker Setup

Use the docker compose file provided with this repository. This would also start a postgres container alongside your shiny container, so you can persist result in a database or get data from it for your app. Note, that it's still a demo case and you would want to

- to run as non-root in production
- to build your own docker image layer with your packages installed so you don't have to do it on start up.




Expand Down

0 comments on commit c31cefe

Please sign in to comment.