Sign inSign up

[Open Source] InvenTree: Lightweight Self-Hosted Inventory Management

Open SourcePurchasing & Inventory
2026-11-22 06:37 1 views • 0 downloads Docker · ~900 MB
[Open Source] InvenTree: Lightweight Self-Hosted Inventory Management

Overview

InvenTree is an open-source inventory system built with Python, Django and React. Its scope is deliberately narrow: rather than replacing a full ERP, it focuses on parts, stock locations, suppliers, purchasing and assembly. Every stock change is recorded as a traceable transaction, each part can carry specifications, images and supplier links, and the location hierarchy maps to real shelves and drawers. The project explicitly targets small and medium businesses as well as hobbyists, which keeps deployment complexity and running cost moderate.

inventree main interface screenshot

Why it fits a small business

Small e-commerce shops, workshops and repair services all ask the same three questions: where is the item, how many are left, and who took them. InvenTree answers with a location tree, a full stock ledger and purchase orders that connect suppliers to incoming goods. A warehouse worker only needs to scan a code and confirm a quantity, while the owner can check a part number on a phone and see quantity, shelf location and last purchase price. Because the stock record becomes the centre of gravity, bookkeeping often gets cleaner as a side effect.

What you can do

  • Part database with categories, parameters, images and custom fields
  • Multi-level stock locations from warehouse down to shelf and drawer
  • A complete stock ledger for receipts, issues, transfers and corrections
  • Suppliers, purchase orders, incoming goods and price history
  • Bills of materials and build orders that consume components
  • Low-stock thresholds with email or on-screen alerts
  • REST API and plugin system for ordering tools and printers
  • Barcode label printing and an official mobile app
inventree feature screenshot

Stack and license

InvenTree runs on Python 3 with Django and a React frontend. PostgreSQL is the recommended production database, SQLite is suitable for evaluation, and Redis handles caching and background tasks. Images are published on GHCR, and a pinned stable tag such as 0.17.5 is preferable to latest so upgrades are predictable. The MIT license makes commercial use, closed-source integration and custom development straightforward, which is unusual in the inventory category. The repository is actively maintained with frequent commits and community translations including Chinese.

Deployment notes

The official Compose file starts the database, Redis and the application together. InvenTree listens on port 8000. Set INVENTREE_SITE_URL to the final public address or links in emails and asset paths will be wrong. The first visit opens a setup wizard to create a superuser and complete site configuration. Three details matter: INVENTREE_SECRET_KEY must stay identical across redeployments or every session is invalidated; static files and uploaded media need persistent volumes; and a reverse proxy must allow WebSocket traffic or pages will not refresh when stock changes. Add the domain to INVENTREE_TRUSTED_ORIGINS to avoid CSRF failures behind a proxy.

  • Endless redirects to the login page usually mean INVENTREE_SITE_URL does not match the proxy Host.
  • CSRF errors are fixed by listing the domain as a trusted origin and forwarding X-Forwarded-Proto.
  • Uploaded images returning 404 indicate a missing media volume or wrong filesystem permissions.
  • Background jobs stop after an upgrade if Redis is unhealthy or migrations were not completed.
inventree reporting screenshot

Resource footprint

With all three containers running, expect 1 to 1.5 GB of memory in steady state; a 2 CPU / 4 GB server handles a team of ten comfortably. More than a hundred thousand parts and a large image library justify 4 CPU / 8 GB and SSD storage for media. The image is close to 900 MB, mostly Python dependencies and compiled frontend assets. Compared with full ERP systems this is a modest footprint, leaving room to co-host other tools on the same machine.

Before you deploy

Write down the few facts that will be used every day before creating containers: the people who need access, the names of the main business objects, and the one workflow that must work on launch day. Most failed self-hosting projects do not fail because the software is broken; they fail because master data is messy and nobody agreed on who owns each step. Prepare persistent volumes, a final domain name and a working SMTP account now, since all three are painful to retrofit after staff have started using the system. If the tool will be reachable from the internet, plan for HTTPS from the first hour rather than as a later improvement.

Data organisation

Start small and real. Import a handful of current records rather than a perfect but imaginary dataset, then walk one complete cycle from creation to report. Give fields short, familiar names and resist adding custom fields until somebody asks for the same filter twice. Define roles at the same time as data: an owner who can see everything, a small group that can edit, and everyone else with read-only or self-service access. Write the three or four rules that matter most into a one-page guide, because a short guide that people read is more useful than a long manual that nobody opens. Review the structure after a month and remove fields that nobody uses.

Backup, upgrades and security

Every system in this batch stores its real value in two places: the database and the uploaded files. Back up both on the same schedule, keep one copy away from the host, and perform a restore drill at least once a quarter. Before replacing an image, read the release notes, take a fresh backup and, where practical, rehearse the upgrade on a test instance. Use one account per person, disable accounts immediately when someone leaves, and keep the administrator login for administration rather than daily work. Check public links and API tokens periodically; forgotten shares are a common source of leaks. HTTPS, strong passwords and a short access review every quarter are enough to protect a small business without building a security programme.

Getting started

  1. Prepare persistent volumes, the database, the final HTTPS address and the pinned image tag.
  2. Start the stack and complete the first-run wizard or site creation step before inviting anyone.
  3. Enter a small set of real master data and run one complete workflow to the final report.
  4. Assign roles, configure email notifications and document the three steps people will use daily.
  5. Schedule backups, rehearse a restore and only then make the system the team's default place to work.

Pitfalls

  • Endless redirects to the login page usually mean INVENTREE_SITE_URL does not match the proxy Host.
  • CSRF errors are fixed by listing the domain as a trusted origin and forwarding X-Forwarded-Proto.
  • Uploaded images returning 404 indicate a missing media volume or wrong filesystem permissions.
  • Background jobs stop after an upgrade if Redis is unhealthy or migrations were not completed.

Who should use it

It is a strong fit for any business holding physical stock: online sellers, small factories, repair shops, labs and maker spaces. It does not provide receivables, general ledger or payroll, so pair it with an accounting system if needed. Its strengths are focus, speed of adoption and a permissive license.

A typical day

The pattern is similar across these tools. In the morning someone opens the system instead of a chat thread, because that is where the current state lives. Work is recorded once, at the moment it happens, and the record carries enough context for a colleague to continue. During the day, filters and views answer the small questions that used to interrupt other people: what is waiting, what is overdue, and who owns the next step. At the end of the day or week, a report is generated from the same records rather than rebuilt by hand. That is the practical return on self-hosting: fewer repeated questions, fewer conflicting versions of the truth, and data that remains yours.

Links

Source repository | Container image | Official documentation

Deployment serviceVerified deployable

Having trouble setting up this project?

We have run “[Open Source] InvenTree: Lightweight Self-Hosted Inventory Management” locally and verified that it installs and the admin panel works. We can deploy it to your server.

Starting at
from $149
Estimated time
48 hours
Deployment notes
Compose 编排、PostgreSQL 与 Redis、首次向导与权限配置、HTTPS 反代 / Compose stack, PostgreSQL and Redis, setup wizard and permissions, HTTPS proxy
Service details →

WeChat: ITcloub · Bring your own server and domain · Full refund if deployment fails