We are assuming all the following commands are executed inside the diffgram installation folder.
# Or for detached mode (no logs)
docker-compose up -d
Re installing on docker can potentially delete DB data if you remove the /postgres-data folder. For installation options read: Install.
The installer creates the
.env file this file contains keys that are generated at install like the fernet key. Instead of re-installing consider updating the env file, or pulling the latest updates.
# Edit .env file
nano .env # nano is a text editor, you can user whichever other text editor you like to edit.env file
Warning: This will delete all data from DB, if you have existing projects or annotations they will no longer exist.
sudo rm -rf postgres-data
pip install diffgram --upgrade
Updated over 1 year ago