- Docker CE for Ubuntu installation: https://docs.docker.com/install/linux/docker-ce/ubuntu/
- Follow post-installation instructions:
https://docs.docker.com/install/linux/linux-postinstall/
- 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
- configuring the daemon.json file will not work with Ubuntu 16.04
(and above), instead add the following to the systemd unit file:
- Install docker-compose https://docs.docker.com/compose/install/ (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
- Build Shiny App Docker image:
- Change current directory to project folder
cd ...
docker build -t telethonkids/new_shiny_app ./<project directory>/webapp
- Change current directory to project folder
- Start Docker containers
3.
docker-compose up -d
- App is ready on port 80: in browser, go to 192.168.99.100 (windows) or 127.17.0.1 (Ubuntu)
These instructions were used to set up a secure HTTPS connection with Certbot SSL certificates. Also see here.
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
.