Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TelethonKids/deploy_shiny_app
Template to deploy Shiny Apps via Docker and ShinyProxy
https://github.com/TelethonKids/deploy_shiny_app
Last synced: 8 days ago
JSON representation
Template to deploy Shiny Apps via Docker and ShinyProxy
- Host: GitHub
- URL: https://github.com/TelethonKids/deploy_shiny_app
- Owner: TelethonKids
- Created: 2019-02-01T13:59:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T04:04:07.000Z (over 3 years ago)
- Last Synced: 2024-08-13T07:14:11.265Z (4 months ago)
- Language: R
- Size: 18.6 KB
- Stars: 37
- Watchers: 6
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - TelethonKids/deploy_shiny_app - Template to deploy Shiny Apps via Docker and ShinyProxy (R)
README
Telethon Kids Institute ShinyProxy Docker Template
================### Docker Ubuntu Server Installation/Set-up
1. Docker CE for Ubuntu installation:
2. Follow post-installation instructions:
1. configuring the daemon.json file will not work with Ubuntu 16.04
(and above), instead add the following to the systemd unit file:
`ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:275 -H
unix:///var/run/docker.sock`
3. Install docker-compose
(optional):sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0-rc1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose### Docker App Deployment
1. Build Shiny App Docker image:
1. Change current directory to project folder `cd ...`
2. `docker build -t telethonkids/new_shiny_app .//webapp`
2. Start Docker containers
3. `docker-compose up -d`
3. App is ready on port 80: in browser, go to 192.168.99.100 (windows)
or 127.17.0.1 (Ubuntu)### HTTPS encryption
[These instructions](https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71)
were used to set up a secure HTTPS connection with Certbot SSL certificates.
Also see [here](https://github.com/wmnnd/nginx-certbot).This will not work out of the box, the NGINX configuration file will need to be
updated with your domain name (which is required) at the indicated places in
`nginx.conf`. `init-letsencrypt.sh` also needs to be configured with your domain
names(s) and email address.The following commands will need to be run on the host machine in order to obtain
the first valid certificates: first run `chmod +x init-letsencrypt.sh` then
`./init-letsencrypt.sh`.If HTTPS security is not wanted then you will need to remove the indicated chunks
of code in `nginx.conf`.