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.
Please make sure to run all commands in the same terminal. If you accidentally closed the terminal earlier, be sure to re-run variables export commands and continue with the installation.
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

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
Please note that the database names should be defined as instructed below each for the needed services to run this simple installation guideline. It is highly dependent for the next steps. If you want to change the db names, you should go for advanced installation.
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'




3. Run VisionAIre Stream
PORT Address for VisionAIre stream by default is 4004.
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

4. Run VisionAIre Snapshot (Face Recognition)
For a smooth installation, please make sure you're using VisionAIre Docker Snapshot verison 2.12.27 (v2.12.28 for GPU version) or higher. Earlier versions does not support the simplified installation method we've outlined in this section.
PORT Address for VisionAIre Snapshot (FR) by default is 4005.
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

5. Run VisionAIre Dashboard
PORT Address for VisionAIre Dashboard by default is 4003. Please access the dashboard with http:{ip}:{port}
docker run -itd \
--name visionaire-dashboard \
--network=host \
--restart unless-stopped \
registry.gitlab.com/nodefluxio/visionaire-dashboard:2.13.0

Last updated
Was this helpful?