Visto Docs
GitHub中文
Docs home/Installation and setup

Docker deployment

Install directly from Docker Hub (recommended)

Visto Server 1.0.3 is published as Core and Web images for Linux amd64 and arm64. Docker selects the host architecture automatically. Use Linux containers in Windows Docker Desktop. The two images work together through Compose: browsers connect to Web, and the Core port remains private to the container network.

  1. Download the official Visto Docker 1.0.3 deployment kit and extract it into a new directory. It contains a pinned compose.yaml, an image manifest, and scripts/docker/ backup, restore and update tools. The full application source is not required.
  2. Start Docker Desktop and wait for its Engine, or start Docker Engine on the host. Open a terminal in the extracted directory and confirm that docker version and docker compose version work. An installed client without a running Engine cannot deploy the application.
  3. Generate the private initialization token in a directory readable only by the maintainer, then pull and start the images. The commands stop if .env already exists and preserve existing configuration.

Windows native PowerShell:

Windows PowerShell

Create the first-run configuration

Run only for a new deployment. An existing .env is preserved; do not recreate it when restarting.

$ErrorActionPreference = 'Stop'
$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
try {
  $bytes = New-Object byte[] 32
  $rng.GetBytes($bytes)
  $token = [Convert]::ToBase64String($bytes)
  $stream = [System.IO.File]::Open((Join-Path $PWD '.env'), [System.IO.FileMode]::CreateNew)
  try {
    $content = [System.Text.Encoding]::ASCII.GetBytes("VISTO_VERSION=1.0.3`nVISTO_HOST_MANAGEMENT_TOKEN=$token`n")
    $stream.Write($content, 0, $content.Length)
  } finally { $stream.Dispose() }
} finally { $rng.Dispose() }
Download images

Continue only after this succeeds.

docker compose pull
if ($LASTEXITCODE -ne 0) { throw 'Image download failed; check Docker and network access before retrying' }
Start the deployment

Wait for startup to succeed before checking the state.

docker compose up -d --no-build --wait
if ($LASTEXITCODE -ne 0) { throw 'Docker startup failed; resolve the error before retrying' }
Check container state

Check core and web; running alone does not prove the workspace is ready.

docker compose ps

macOS / Linux / WSL (Bash)

Create the first-run configuration

Run only for a new deployment. An existing .env is preserved; do not recreate it when restarting.

(
set -eu
umask 077
set -C
printf 'VISTO_VERSION=1.0.3\nVISTO_HOST_MANAGEMENT_TOKEN=%s\n' "$(openssl rand -base64 32)" > .env
)
Download images

Continue only after this succeeds.

docker compose pull
Start the deployment

Wait for startup to succeed before checking the state.

docker compose up -d --no-build --wait
Check container state

Check core and web; running alone does not prove the workspace is ready.

docker compose ps
  1. Open http://127.0.0.1:8080/. Read the full token privately from your own .env and follow first setup to create the workspace and account. Preserve this file for future starts; do not regenerate or share the token.

If another service uses port 8080, add VISTO_HOST_PORT=18080 to .env before starting, then open http://127.0.0.1:18080/. Do not stop another application's service. Docker Engine 26+ and Compose v2 are required, with enough disk space for media, previews and backups.

Both image digests are already fixed in the kit; no manual digest entry is needed. Core includes the video runtime, so it does not need a separate component installation. Initial deployment requires network access to pull the images. If pulling times out, check Docker's network and proxy settings, then retry docker compose pull.

Build from the complete source (optional)

The following alternative requires the complete source delivery, not the small deployment kit above.

This route is for people already familiar with Docker Compose, volumes, and server administration. Use the complete source bundle supplied for the release. A standalone macOS package is not a Docker source bundle.

Prepare the source and configuration

The source must contain Dockerfile, compose.yaml, infra/docker/nginx.conf, the application source, and scripts/docker. Build this alternative from the matching complete source bundle.

Docker Engine 26+, Compose v2, at least 4 GB of available memory, and free space for persistent volumes are required. In a new deployment directory, run the following in Bash (macOS/Linux or Windows WSL). The version below belongs to the supplied source bundle; use its release version when deploying another bundle. Existing .env files are preserved.

Create the first-run configuration

Run only for a new deployment. An existing .env is preserved; do not recreate it when restarting.

(
set -eu
umask 077
set -C
printf 'VISTO_VERSION=1.0.3\nVISTO_HOST_MANAGEMENT_TOKEN=%s\n' "$(openssl rand -base64 32)" > .env
)

Build and start

Wait for startup to succeed before checking the state.

docker compose up -d --build

Check container state

Check core and web; running alone does not prove the workspace is ready.

docker compose ps

Open http://127.0.0.1:8080/ on the host. Read the initialization token privately from the local .env file and complete setup. Do not regenerate that token, overwrite .env, or share it with project members. In a new Bash terminal, load your own trusted deployment configuration before running maintenance tools:

set -a; . ./.env; set +a

Compose contains separate Core and Web services. The Core port remains internal; browsers connect through Web. Check services and recent logs if the page cannot open. Windows native PowerShell can use the initialization instructions in the source bundle; the Bash examples here are for WSL.

Use a supplied video archive

Place the architecture-matching component archive in a runtime-input directory next to the source directory. Use Docker Buildx with named build contexts. The archive names and version are supplied with the source bundle.

(
set -eu
set -a; . ./.env; set +a
case "$(uname -m)" in
  arm64|aarch64) PLATFORM=linux/arm64 ;;
  x86_64) PLATFORM=linux/amd64 ;;
  *) echo 'Unsupported architecture'; exit 1 ;;
esac
docker buildx build --load --platform "$PLATFORM" \
  --build-context runtime-input=../runtime-input \
  --build-arg VISTO_VERSION="$VISTO_VERSION" \
  --target core -t visto-core:local .
docker buildx build --load --platform "$PLATFORM" \
  --build-arg VISTO_VERSION="$VISTO_VERSION" \
  --target web -t visto-web:local .
)

Start the locally built images

Continue only after both builds succeed. Keep the same deployment configuration.

docker compose up -d --no-build

Use these local image names for a fresh deployment only. Do not overwrite an existing deployment's images to bypass protected update procedures. Base images and dependencies still require internet access or a suitable cache.

Daily service management

Run in the deployment directory containing compose.yaml and your existing .env. Keep the same project configuration; do not regenerate the token.

Start

Use this after stop or down; it creates containers if needed.

docker compose up -d --no-build --wait

Stop temporarily

Stops containers while retaining them for the next start.

docker compose stop

Restart existing containers

Does not apply changed compose.yaml or .env settings. After a configuration change, use the start command above to recreate affected containers.

docker compose restart

Check container state

core and web should be Up/running; a configured health check should become healthy. Exited, restarting or unhealthy needs investigation.

docker compose ps

Read recent logs

Read-only; this does not stop the service.

docker compose logs --tail 100 core

Run diagnostics

The core container must already be running.

docker compose exec core visto-server doctor

Remove stopped deployment containers

This removes containers and their network. Never add -v: it can delete persistent volumes. Keep .env and backups.

docker compose down

Back up and restore

Create a backup as a separate maintenance action. External host mounts and remote media need their own backups.

./scripts/docker/backup-visto-docker.sh --backup-dir ./backups

Before restoring, save the current data and run the bundle's restore tool with --check-only. Keep the archive and its companion metadata together. Then use --confirm-restore only after reviewing what will be replaced. The deployment kit records the published 1.0.3 image references in docker-images.json. For later upgrades, use the protected update tool and the immutable references published for that version; preserve pre-update backups and failure recovery. Do not replace this workflow with an arbitrary latest image or a simple container recreation.

Search the docs

View image