2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-30 02:40:43 +00:00

Add FAQ entry about docker volume issues ()

This commit is contained in:
Oliver
2022-11-20 22:10:00 +11:00
committed by GitHub
parent 82b773b63f
commit 98a416ebe8
2 changed files with 18 additions and 2 deletions

@ -102,6 +102,18 @@ InvenTree stores any persistent data (e.g. uploaded media files, database data,
!!! info "Data Directory"
Make sure you change the path to the local directory where you want persistent data to be stored.
#### Common Issues
When configuring a docker install, sometimes a misconfiguration can cause peculiar issues where it seems that the installation is functioning correctly, but uploaded files and plugins do not "persist" across sessions. In such cases, the "mounted" volume has not mapped to a directory on your local filesystem. This may occur if you have tried multiple setup options without clearing existing volume bindings.
!!! tip "Start with a clean slate"
To prevent such issues, it is recommended that you start with a "clean slate" if you have previously configured an InvenTree installation under docker.
If you have previously setup InvenTree, remove existing volume bindings using the following command:
```docker volume rm -f inventree-production_inventree_data```
## Production Setup Guide
### Edit Environment Variables