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).
1. Start with compose.prod.yml
Section titled “1. Start with compose.prod.yml”mkdir video-reviewcd video-reviewcurl -L -O https://raw.githubusercontent.com/arita-yuto/video-review/main/compose.prod.ymldocker compose -f compose.prod.yml up -dOpen http://localhost:3489 and register the first administrator (Admin Screen Guide).
Pull from Docker Hub
Section titled “Pull from Docker Hub”Save compose.dockerhub.yml as compose.prod.yml.
Updates then keep pulling from Docker Hub.
curl -L -o compose.prod.yml https://github.com/arita-yuto/video-review/releases/latest/download/compose.dockerhub.yml2. Update to a new release
Section titled “2. Update to a new release”docker compose -f compose.prod.yml pulldocker compose -f compose.prod.yml up -d3. Create .env
Section titled “3. Create .env”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 |
Reference
Section titled “Reference”Update with video-review-cli
Section titled “Update with video-review-cli”With video-review-cli downloaded into the same folder as compose.prod.yml, the update steps run in one command.
# Linuxcurl -L -o video-review-cli https://github.com/arita-yuto/video-review/releases/latest/download/video-review-cli-linux-amd64chmod +x video-review-cli
# Windowscurl.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 --dockerStart and stop with ./video-review-cli start --docker / stop --docker.
Build from source
Section titled “Build from source”To build locally instead of pulling, tag the images with the names compose refers to.
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 .Development (Docker)
Section titled “Development (Docker)”npm installdocker compose up -d --build