For the native Windows 10/11 installation, follow step-by-step Windows installation guide. The instructions below describe the supported Linux Docker installation.
This guide creates a new, empty ALPR Database Community installation. It does not import an existing database. Existing-system operators should use the automated migration runbook and keep the source system unchanged until migration acceptance is complete.
Ubuntu Server 24.04 LTS x86-64 is the simplest recommended target. The same
automatic path supports the additional maintained Ubuntu, Debian, RHEL, Rocky
Linux, AlmaLinux, CentOS Stream, and Fedora versions in
Host compatibility. Use a normal account with sudo.
Allocate 4 vCPU, 8 GiB RAM, and 100 GiB disk; the bootstrap enforces minimums
of 2 CPUs, a 4 GiB allocation with at least 3500 MiB reported usable, and 20
GiB free before application data. Docker's local data-root filesystem must also
have at least 10 GiB free. Download, checksum, and run the release bootstrap as
described in Automated Community bootstrap. Its recommended
command selects the new-installation path directly.
A Linux virtual machine is supported regardless of whether its physical host uses Unraid, Proxmox, VMware, Hyper-V, VirtualBox, or another hypervisor. The guest operating system, Docker Engine, and Compose determine compatibility. Native Windows Docker and appliance-managed NAS container interfaces are not supported by this installer; use a supported x86-64 Linux VM. See Host compatibility for the exact automatic matrix, manual Linux path, and failed-check recovery.
The bootstrap installs Git, Docker Engine, the docker compose CLI plugin
(version 2 or newer), Buildx, and a private checksum-verified Node.js 24
runtime. OpenVINO and ReID do not need host installation; they are bundled and
inference-tested in the application image.
If you deliberately manage dependencies yourself, install Git, Docker Engine,
the docker compose CLI plugin (version 2 or newer), Buildx, and Node.js 24
from your distribution or their official upstream sources. The normal account
must be able to use Docker.
Verify the host before downloading ALPR:
docker version
docker compose version
docker buildx version
docker info >/dev/null && echo "Docker operational"
git --version
node --versionnode --version must report major version 24. Run the installer as the normal
account that owns the release checkout and has permission to use Docker. Do not
run the whole installer with sudo.
Clone the canonical repository and detach at the exact stable release tag:
git clone https://github.com/prsmith777/ALPR-Database-Community.git
cd ALPR-Database-Community
git checkout --detach v0.1.63
./alpr-community installIf the v0.1.36 bootstrap stopped immediately after cloning with
Existing Community checkout is not clean, the incomplete state is ambiguous:
Git cannot prove that it differs from deliberately staged deletion of every
tracked file. Review it, preserve it by moving the entire directory aside, and
then run the newest verified bootstrap. Current bootstraps do not overwrite,
reset, or automatically repair that directory.
The installer explains each prompt, retries invalid entries, and asks for:
- an administrator password containing 12 through 128 characters;
- an IANA time zone such as
America/Denver, defaulting to the host's detected time zone orUTC; - the application port, normally
3000; and - the loopback-only PostgreSQL port, normally
5432.
The administrator password may contain ordinary symbols, including $ and
#, but not quotes, backslashes, line breaks, NUL characters, or leading or
trailing whitespace. Input is hidden. The installer generates a separate
high-entropy database password; the user never needs to enter that generated
value.
Before changing Docker state, the installer refuses:
- a dirty or untagged source checkout, non-ignored untracked files, a
noncanonical Git remote, or a tag
that does not resolve to the same commit on canonical
origin/main; - a preexisting
.envor completed installer state; - preexisting
auth/,config/,storage/, orupdate-control/directories; - a colliding Compose project, volume, network, or host port;
- an image whose recorded source revision disagrees with the release; or
- insufficient disk space.
It then creates a private .env, builds a commit-qualified image in an
isolated temporary BuildKit builder, removes that builder, assigns the
application runtime directories to container UID/GID 1000, and creates a
set-group-ID update-control/ directory shared only with the installing host
account's primary group. It then starts PostgreSQL, applies the migrations
transactionally, and starts the application. Installation succeeds
only after all of these checks pass:
- PostgreSQL is ready;
- all pinned OpenVINO detection, attribute, and ReID models complete CPU inference inside the final runtime image;
/api/health-checkreturns{"status":"ok"};- the running image and OCI revision label match the exact release commit;
- plates, reads, known plates, tags, plate tags, and notifications are empty;
- staging-fixture tables are absent; and
- the clean-install image-migration marker is complete.
No sample or test records are loaded.
Docker may retain unused engine-side build cache after the final image is loaded even though the temporary builder was removed. This cache is not ALPR data and is not the rollback image. Review the dedicated-host cleanup guidance in Community updates rather than deleting images, containers, or volumes.
The first image build and model verification can take several minutes and may
print substantial Docker download/build output. Leave the terminal open. The
process is complete only when it prints installed successfully, browser
addresses, and numbered next steps. If it stops, the final error explains what
to correct before retrying; an ordinary failure also cleans up only the
resources created by that attempt.
Open one of the detected server addresses printed at completion. If the host
cannot identify a suitable network address, replace SERVER_IP with the Linux
host or VM address:
http://SERVER_IP:3000
Leave the username blank and enter the administrator password chosen during
installation. The generated database password in .env is not an application
login password. Create a named administrator under Settings after sign-in.
From v0.1.53, a successful fresh installation sets up browser-managed updates automatically on a systemd Linux host. It preserves a matching existing helper, enables startup after reboot, and verifies a fresh heartbeat from the running service. Setup may request sudo permission once to enable startup for the installation owner's account.
For an older installation or if automatic setup reports that it needs attention, run this from the installation directory as the same normal account:
./alpr-community agent installThe recovery command also enables startup after reboot and verifies the helper.
Open Settings → Software Updates and confirm the agent is shown as ready.
If helper setup fails, the successful ALPR installation and its data are kept;
correct the reported permission, user-bus or service-binding issue and retry
the command. A helper belonging to another installation is never overwritten.
Hosts without systemd can run
./alpr-community agent run under their existing service supervisor; the
terminal updater remains available through ./alpr-community.
Verify the installation from the host:
curl --fail http://127.0.0.1:3000/api/health-check
docker compose ps
./alpr-community install --statusThe status command displays only release, ports, project identity, and
validation state. It never displays either password. .env and the installer
state file are private runtime files excluded from Git.
Interactive installation is preferred because it keeps the administrator password out of command history. For controlled automation, supply the values through a protected secret store or private process environment:
export ALPR_INSTALL_ADMIN_PASSWORD='choose-a-private-password'
export ALPR_INSTALL_TIMEZONE='UTC'
export ALPR_INSTALL_APP_PORT='3000'
export ALPR_INSTALL_DB_PORT='5432'
export ALPR_INSTALL_ACKNOWLEDGE='ALPR_FRESH_INSTALL'
./alpr-community install
unset ALPR_INSTALL_ADMIN_PASSWORD ALPR_INSTALL_ACKNOWLEDGEALPR_INSTALL_PROJECT_NAME may optionally set a unique lowercase Compose
project name. The same collision and emptiness checks apply in non-interactive
mode.
A normal installation failure triggers automatic cleanup of only the exact
Compose project, volumes, runtime directories, environment file, and image
recorded as created by that attempt. It never runs docker system prune,
deletes unrelated volumes, or touches a preexisting nonempty directory.
Power loss or forced process termination can interrupt cleanup. Inspect the redacted record, then request the narrow recovery explicitly:
./alpr-community install --status
ALPR_INSTALL_RECOVERY=ALPR_RECOVER_FAILED_INSTALL \
./alpr-community install --recoverRecovery refuses a completed installation. It also refuses to remove .env
if that file changed after installation began, preventing cleanup from erasing
configuration that an operator subsequently adopted or edited. If the
recorded .env is missing, recovery preserves its state and stops so it cannot
strand Docker resources without their recovery record.
After a successful installation, use the Community update guide for exact-tag updates, acceptance, rollback, and bounded cleanup.
Community initializes ReID V2 automatically. Models run inside the application image; eligible whole-vehicle images are processed in the background, with status and pause/resume controls in Settings > Vehicle Setup. No separate ReID host installation or conversion campaign is needed. See Vehicle identity and upgrades for image requirements, processing progress, and retained data during upgrades.