Docker Install Cheatsheet
Common commands to run when managing a local opensource installation
We are assuming all the following commands are executed inside the diffgram installation folder.
Spin Up Diffgram Services
docker-compose up
# Or for detached mode (no logs)
docker-compose up -d
Re-Install in Docker Context Not Recommended
Database
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.
Updates
See Update
Stop Diffgram Services
docker-compose down
Edit configuration variables for installation
# Edit .env file
nano .env # nano is a text editor, you can user whichever other text editor you like to edit.env file
Delete DB Data
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
Update the SDK
pip install diffgram --upgrade
Updated over 2 years ago