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
- Go to the Appliku Dashboard
- Click Add Application
- Select Git Provider: Custom
- Give the application a name
- Set Git URL to
https://github.com/appliku/empty, branch:main - Select your server
Configure the Application
Build Settings
- Go to the application settings
- Change Base Docker Image to Custom Dockerfile
- In the Custom Dockerfile field, enter only this line:
FROM rocker/rstudio
- Set Container Port to
8787 - Scroll down and click Save Changes
Environment Variables
Go to the Environment Variables tab and add these two variables:
| Variable | Value |
|---|---|
PASSWORD | your secure password |
ROOT | true |
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
PASSWORDenvironment variable
Custom Domain
To use a custom domain, go to the application settings and open the Domains tab.