To host Rstudio you need to create an app with an empty repository.

Create a Rstudio application:

  • Go to Appliku Dashboard
  • Click Add Application
  • Select Git Provider: Custom
  • Give application a name, Git URL: https://github.com/appliku/empty, branch: main and select your server

image

Setup Rstudio application:

Go to settings

image

Change the "Base Docker Image" to "Custom Dockerfile"

and in the "Custom Dockerfile" field put only this line:

FROM rocker/rstudio

image

Set container port to 8787

Scroll down and click "Save Changes".

Go to the "Environment Variables" tab and add two variables:

PASSWORD=yoursecurepassword
ROOT=true

image

Of course, change the password to something unique. Click "save".

Go to the "Volumes" tab.

Add a volume with container path /home/rstudio and click "Add Volume".

image

Official docs suggest creating volumes in a more granular way.

For more detailed guidance on settings https://rocker-project.org/images/versioned/rstudio.html#editing-work-on-rstudio-server

Go to the "Processes" tab and add a process called web and leave the command field empty.

image

Click the "Save and Deploy" button.

After deployment has finished you can open your application.

Open Rstudio application

Go to the application overview.

Click "Open App" and click on the domain.

image

Enter username rstudio and the password you specified in the environment variable PASSWORD

image

Congrats!

We have successfully self-hosted our RStudio deployed from the Dockerhub on your own server with SSL certificate.

image

If you want to add a custom domain you can do so in the app settings on the "Domains" tab.