The way to install rstudio on dokku
- Create Dokku app called
rstudio
dokku apps:create rstudio
- Pull image from Docker Hub
docker pull rocker/rstudio
- Retag the docker image
rocker/rstudio
to dokku apprstudio
docker tag rocker/rstudio:latest dokku/rstudio
- Deploy rstudio.
dokku tags:deploy rstudio
At this point, the rstudio is running on dokku. But however, we cannot access it from outside.
Update the port 80
to port 8787
dokku proxy:ports-add rstudio http:80:8787
Remove the port 8787
from dokku
dokku proxy:ports-remove rstudio http:8787:8787
You can now visit rstudio.example.com
to access rstudio server.
With default username and password as rstudio