Skip to content

🎥 Make videos programmatically with React

deploy the studio

Jonny Burger1b3232164639
diff --git a/packages/docs/docs/deploy-remotion-studio.md b/packages/docs/docs/deploy-remotion-studio.md
new file mode 100644
index 0000000000..bd5b014105
--- /dev/null
+++ b/packages/docs/docs/deploy-remotion-studio.md
@@ -0,0 +1,76 @@
+---
+image: /generated/articles-docs-deploy-remotion-studio.png
+id: deploy-studio
+title: Deploy the Remotion Studio
+sidebar_label: Deploy Remotion Studio
+crumb: "Building video apps"
+---
+
+_available from v4.0.46_
+
+You can deploy the Remotion Studio to a long-running server in the cloud and make it accessible to your team. To do so, you need to:
+
+- Install Node.js and Chrome
+- Run `npx remotion studio` on the server
+- Ensure port 3000 is available to the internet
+
+## Dockerizing the Remotion Studio
+
+```Dockerfile
+FROM node:20-bookworm
+
+RUN apt-get update
+RUN apt-get install -y chromium
+
+# Copy everything from your project to the Docker image. Adjust if needed.
+COPY package.json package*.json yarn.lock* pnpm-lock.yaml* bun.lockb* tsconfig.json* remotion.config.* ./
+COPY src ./src
+
+# If you have a public folder:
+COPY public ./public
+
+# Install the right package manager and dependencies. Adjust if needed.
+RUN npm i
+
+CMD ["npx", "remotion studio"]
+```
+
+## Fly.io
+
+To deploy the Remotion Studio to [Fly.io](https://fly.io):
+
+- First add the above `Dockerfile` to the repo.
+- Ensure you are on a paid plan (free plan has too little memory)
+- Use the following command:
+
+```bash
+fly launch \
+ # Get 2 CPU cores and 4GB of memory
+ --vm-size=performance-2x \
+ # Disable 2x replication
+ --ha=false \
+ # Use Remotion's port
+ --internal-port=3000 \
+ # Use Docker, not Node
+ --dockerfile Dockerfile
+```
+
+For the following questions, answer no:
+
+```txt
+? Would you like to set up a Postgresql database now? No
+? Would you like to set up an Upstash Redis database now? No
+? Create .dockerignore from 1 .gitignore files? No
+```
+
+Answer Yes when asking if you want to deploy:
+
+```
+? Do you want to deploy now? Yes
+```
+
+You should get a URL where the Studio was deployed!
+
+## See also
+
+- [Dockerizing an Remotion app](/docs/docker)
diff --git a/packages/docs/docs/docker.md b/packages/docs/docs/docker.md
index 084458d26d..7cd88e7d52 100644
--- a/packages/docs/docs/docker.md
+++ b/packages/docs/docs/docker.md
@@ -212,3 +212,7 @@ Alpine Linux is a lightweight distribution often used in Docker. There are two k
**April 15th, 2023**: Unpinning the versions in Debian since it would cause breakage.
**April 3rd, 2023**: Changed the Alpine Docker image to a Debian one, since the versions of Alpine packages cannot be pinned. This makes the Debian one less likely to break.
+
+## See also
+
+- [Deploying the Remotion Studio](/docs/deploy-studio)
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index ed2862a0a2..de04399975 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -628,6 +628,7 @@ module.exports = {
"buffer-state",
"presigned-urls",
"font-picker",
+ "deploy-studio",
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 1ce727a8c8..7966e6d869 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -566,6 +566,13 @@ export const articles = [
compId: "articles-docs-delay-render",
crumb: "How to",
},
+ {
+ id: "deploy-studio",
+ title: "Deploy the Remotion Studio",
+ relativePath: "docs/deploy-remotion-studio.md",
+ compId: "articles-docs-deploy-remotion-studio",
+ crumb: "Building video apps",
+ },
{
id: "docker",
title: "Dockerizing a Remotion app",
diff --git a/packages/docs/static/generated/articles-docs-deploy-remotion-studio.png b/packages/docs/static/generated/articles-docs-deploy-remotion-studio.png
new file mode 100644
index 0000000000..ccfbae92e3
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-deploy-remotion-studio.png differ