Mar 27, 2023
If you have data from an older version of ALPR you can extract this data to an external directory, which will then be used as a persistent data storage location. For this example we use the folder Sighthound-ALPR in your home directory (the same in our starter setup).
- Open a terminal and “cd” into the “sighthound-alpr” folder you created during the initial installation of our older version.
- Stop all of the services by typing:
docker-compose down
- Open a terminal and copy and paste this code to export your data to a new folder on your desktop named Sighthound-ALPR:
DATA_DIR=~/Desktop/Sighthound-ALPR mkdir -p $DATA_DIR docker run --rm \ -v $DATA_DIR:/data \ -v sighthound-alpr_app-volume:/old/app \ -v sighthound-alpr_mongo-volume:/old/db \ -v sighthound-alpr_data-volume:/old/storage \ -v sighthound-alpr_logs-volume:/old/logs \ -w /old \ alpine \ cp -vr . /data/
- Open new "Sighthound-ALPR" folder that's on your desktop and edit the "server_config.hjson" file inside of the "app" folder. Any text editor will work.
* Change net.http.hostname to 0.0.0.0
* Change net.http.port to 9600
* Change proxy.target to http://localhost:9601
- Create a new Docker container for Sighthound ALPR by running the following code. Unlike the previous "docker-compose" version, it doesn't matter which folder your terminal is in when running this:
docker run -d --name sighthound-alpr -p 9600:9600 \ --restart unless-stopped \ -v ~/Desktop/Sighthound-ALPR:/var/alpr \ --env MONGO_DATABASE_NAME=si_data \ --env INVESTIGATOR_DB_DATA_NAME=data \ --env INVESTIGATOR_DB_MAIN_NAME=main \ sighthound/alpr
Note: If this is the first time you are running the application, several gigabytes of data will be downloaded and may take several minutes to complete. Subsequent restarts and updates will be much quicker.
-
Open a web browser (Chrome or Firefox preferred) and navigate to http://localhost:9600, you'll now be on the new version of ALPR and all of your existing data should be visible.