Page cover image

Simple Installation

This guideline is intended for simple installation to quick start the VisionAIre products seamlessly.

If you are a developer and need more customization. Make sure you already fulfill the requirement.

1. Create User-Defined Docker Network & Volumes

Create a user-defined bridge network:

docker network create nf-visionaire

Create docker volumes for postgresdb:

docker volume create postgres-data
Step 1: Create a user-defined docker network and volume

2. Run Postgres Container

Create Postgres Container

docker run -it -d \
--name=postgresdb \
--network=host \
--restart unless-stopped \
-e POSTGRES_PASSWORD=nfvisionaire123 \
-e POSTGRES_DB=nfvisionaire \
-e POSTGRES_USER=postgres \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v postgres-data:/var/lib/postgresql/data \
postgres:12-alpine

Init the database to run VisionAIre stream

docker run -it --rm \
--network=host \
-e PGPASSWORD=nfvisionaire123 \
postgres:12-alpine \
sh -c 'psql -h localhost -U postgres -c "CREATE DATABASE nfvisionaire;" || true'

Create a new additional database to run VisionAIre snapshot for Face Recognition analytics

docker run -it --rm \
--network=host \
-e PGPASSWORD=nfvisionaire123 \
postgres:12-alpine \
sh -c 'psql -h localhost -U postgres -c "CREATE DATABASE fremisn;" || true'

Create again a new additional database to run VisionAIre dashboard

docker run -it --rm \
--network=host \
-e PGPASSWORD=nfvisionaire123 \
postgres:12-alpine \
sh -c 'psql -h localhost -U postgres -c "CREATE DATABASE vdashboard;" || true'
Step 2.1: Run Postgres Container
Step 2.2: create a new database namely nfvisionaire for VisinAIre stream
Step 2.2: Create a new database namely fremisn for VisionAIre snapshot (Face Recognition)
Step 2.3 Create a new database namely vdashboard for VisionAIre Dashboard and check the availability of needed databases for each services

3. Run VisionAIre Stream

For a smooth installation, please make sure you're using VisionAIre Docker Stream version 4.57.6 or higher. Earlier versions does not support the simplified installation method we've outlined in this section.

docker run -it -d --net=host \
--shm-size=16gb \
--name=visionaire4  \
--restart unless-stopped \
--gpus all \
nodefluxio/visionaire4:4.57.25

For Intel Version

docker run -it -d --net=host \
--shm-size=16gb \
--name=visionaire4  \
--restart unless-stopped \
--device=/dev/dri/renderD128 \
--device=/dev/accel/accel0 \
nodefluxio/visionaire4:4.57.25
Step 3: Run VisionAIre Docker Stream

4. Run VisionAIre Snapshot (Face Recognition)

You only need to do this step if you need to use Face Recognition analytic. Otherwise, you can just skip to the Dashboard installation.

Running with CPU version:

docker run -it -d \
--name fremisn \
--network=host \
--restart unless-stopped \
nodefluxio/fremis-n:v3.0.1-cpu httpserver

Running with GPU version:

docker run -it -d \
--name fremisn \
--network=host \
--restart unless-stopped \
--gpus all \
nodefluxio/fremis-n:v3.0.1-gpu httpserver
Step 4: Run VisionAIre Docker Snapshot for Face Recognition

5. Run VisionAIre Dashboard

docker run -itd \
    --name visionaire-dashboard \
    --network=host \
    --restart unless-stopped \
    registry.gitlab.com/nodefluxio/visionaire-dashboard:2.13.0
Step 5: Run VisionAIre Docker Dashboard and check the availability of all needed services

Last updated

Was this helpful?