Skip to main content

Self-hosting RStudio

This guide shows how to run RStudio Server on your own server using Appliku. RStudio is deployed as a Docker container from the official rocker/rstudio image.

Create an RStudio Application

  1. Go to the Appliku Dashboard
  2. Click Add Application
  3. Select Git Provider: Custom
  4. Give the application a name
  5. Set Git URL to https://github.com/appliku/empty, branch: main
  6. Select your server

Configure the Application

Build Settings

  1. Go to the application settings
  2. Change Base Docker Image to Custom Dockerfile
  3. In the Custom Dockerfile field, enter only this line:
FROM rocker/rstudio
  1. Set Container Port to 8787
  2. Scroll down and click Save Changes

Environment Variables

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

VariableValue
PASSWORDyour secure password
ROOTtrue

Click Save.

Volumes

Go to the Volumes tab and add a volume with:

  • Container path: /home/rstudio

Click Add Volume.

tip

The official Rocker docs recommend more granular volume configuration. See rocker-project.org for details.

Processes

Go to the Processes tab and add a process:

  • Name: web
  • Command: (leave empty)

Deploy

Click Save and Deploy. Once the deployment finishes, go to the application overview and click Open App.

Logging In

Open the domain link and log in with:

  • Username: rstudio
  • Password: the value you set in the PASSWORD environment variable

Custom Domain

To use a custom domain, go to the application settings and open the Domains tab.