Skip to content

Build & Run (Docker)

How to run VideoReview with Docker.

The images are published to ghcr.io for every GitHub release, so there is nothing to build.
The same images are on Docker Hub as aritayuto/videoreview and aritayuto/video-processing.

Note: Docker Compose 2.24 or later is required (check with docker compose version).


Terminal window
mkdir video-review
cd video-review
curl -L -O https://raw.githubusercontent.com/arita-yuto/video-review/main/compose.prod.yml
docker compose -f compose.prod.yml up -d

Open http://localhost:3489 and register the first administrator (Admin Screen Guide).

Save compose.dockerhub.yml as compose.prod.yml.
Updates then keep pulling from Docker Hub.

Terminal window
curl -L -o compose.prod.yml https://github.com/arita-yuto/video-review/releases/latest/download/compose.dockerhub.yml

Terminal window
docker compose -f compose.prod.yml pull
docker compose -f compose.prod.yml up -d

To change the storage path or the version, create a .env in the same folder as compose.prod.yml.

Variable Meaning
DOCKER_HOST_STORAGE The host path that holds the uploaded files. Empty keeps them in a Docker named volume
VIDEO_REVIEW_VERSION The release to run (e.g. v0.2.0). Empty pulls the latest release

With video-review-cli downloaded into the same folder as compose.prod.yml, the update steps run in one command.

Terminal window
# Linux
curl -L -o video-review-cli https://github.com/arita-yuto/video-review/releases/latest/download/video-review-cli-linux-amd64
chmod +x video-review-cli
# Windows
curl.exe -L -o video-review-cli.exe https://github.com/arita-yuto/video-review/releases/latest/download/video-review-cli-windows-amd64.exe
# Update
./video-review-cli upgrade --docker

Start and stop with ./video-review-cli start --docker / stop --docker.

To build locally instead of pulling, tag the images with the names compose refers to.

Terminal window
docker build -t ghcr.io/arita-yuto/video-review/videoreview:latest -f docker/web/Dockerfile.prod .
docker build -t ghcr.io/arita-yuto/video-review/video-processing:latest -f docker/video-processing/Dockerfile .
Terminal window
npm install
docker compose up -d --build