A containerized version of OpenCut - the free, open-source video editor. This template is designed for easy deployment on Railway, but can run anywhere Docker is supported.
OpenCut is a privacy-focused, browser-based video editor that keeps your videos on your device. No watermarks, no subscriptions, just free video editing.
Features:
- Timeline-based editing
- Multi-track support
- Real-time preview
- Client-side processing (files never leave your browser)
- No watermarks or subscriptions
This fork makes a few key modifications to the original OpenCut project to enable easy deployment in a containerized environment:
- Auth Configuration - Fixed runtime environment variable handling for
BETTER_AUTH_URL - Migration Support - Added Drizzle migration files and dependencies to Docker image
- Build Optimization - Configured standalone Next.js build for containerization
Click the button above or use this template URL:
https://railway.com/deploy/opencut?referralCode=rees
Railway will automatically:
- Create a PostgreSQL database
- Run database migrations
- Deploy the containerized application
- Provide you with a public URL
The template configures these automatically, but for reference:
| Variable | Description | Default |
|---|---|---|
DATABASE_URL |
PostgreSQL connection string | Set by Railway |
BETTER_AUTH_URL |
Base URL for authentication | Your Railway domain |
BETTER_AUTH_SECRET |
Auth encryption secret | Generated randomly |
UPSTASH_REDIS_REST_URL |
Redis connection URL | Set by Railway |
UPSTASH_REDIS_REST_TOKEN |
Redis auth token | Set by Railway |
To run this containerized version locally:
# Clone this repository
git clone https://github.com/ReesMorris/OpenCut.git
cd OpenCut
# Build the Docker image
docker build -t opencut -f apps/web/Dockerfile .
# Run with environment variables
docker run -p 3000:3000 \
-e BETTER_AUTH_URL=http://localhost:3000 \
-e BETTER_AUTH_SECRET=your-secret-here \
-e DATABASE_URL=your-db-url \
opencutThis template stays synchronized with the main OpenCut repository. Major updates are merged regularly to ensure you get the latest features and fixes.
Original Repository: OpenCut-app/OpenCut
- Template Issues: Post on the template discussion board
- OpenCut Issues: Report to the main OpenCut repository
- Railway Issues: Check Railway's documentation
This project maintains the same MIT License as the original OpenCut project.