Try describing what you need:

Inventree logo

Inventree

★ 7.9k
MIT LicenseOpen Source — No Paywall5 Containers — 5 containers — moderate hosting footprintDocker · Package · SourceNeeds Postgres2 documented maintainers

About

InvenTree is an open-source inventory management system aimed at teams that need structured stock control and part tracking. It presents itself as a web-based platform built on a Python/Django...

Community Ratings

No ratings yet

Features

  • stock control
  • part tracking
  • web-based admin interface
  • REST API
  • plugin system
  • external integrations
  • custom plugins
  • companion mobile app

Details

Last Updated
Nov 25, 2026
Created
Mar 23, 2017
Install Methods
dockerpackage-managersource
Requirements
PythonDjangoDRFDjango QDjango-AllauthPostgreSQLMySQLMariaDBSQLiteRedis
Authentication
local
API
REST
Runtime / Stack
Python
Privacy & Independence
No Cloud Required
User Model
Multi-User
Deployment

Deployment: Docker Compose ✓5 Containers — moderate hosting footprintRuns as 5 containers

Run Inventree yourself

Pick how much you want to manage.

3 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run Inventree with Docker Compose

Compose file from the Inventree project repository.

5 services · database: postgres · infra: postgres, redis, caddy

no resource limits declared

needs persistent storage (10 volumes)

contrib/container/docker-compose.yml · @ c2b7f71 · scanned Nov 3, 2026

# Docker compose recipe for a production-ready InvenTree setup, with the following containers:
# - PostgreSQL as the database backend
# - gunicorn as the InvenTree web server
# - django-q as the InvenTree background worker process
# - Caddy as a reverse proxy
# - redis as the cache manager (optional, enabled by default)

# ---------------------
# READ BEFORE STARTING!
# ---------------------

# -----------------------------
# Setting environment variables
# -----------------------------
# Shared environment variables should be stored in the .env file
# Changes made to this file are reflected across all containers!
#
# IMPORTANT NOTE:
# You should not have to change *anything* within this docker-compose.yml file!
# Instead, make any changes in the .env file!

# ------------------------
# InvenTree Image Versions
# ------------------------
# By default, this docker-compose script targets the STABLE version of InvenTree,
# image: inventree/inventree:stable
#
# To run the LATEST (development) version of InvenTree,
# change the INVENTREE_TAG variable (in the .env file) to "latest"
#
# Alternatively, you could target a specific tagged release version with (for example):
# INVENTREE_TAG=0.7.5
#

# ----------------------------
# Docker compose customization
# ----------------------------
# If you wish to customize the docker-compose script, you should only do so if you understand the stack!
# Do not expect support for customizations that are not part of the standard InvenTree setup!

services:
    # Database service
    # Use PostgreSQL as the database backend
    inventree-db:
        image: postgres:17
        container_name: inventree-db
        expose:
            - ${INVENTREE_DB_PORT:-5432}/tcp
        environment:
            - PGDATA=/var/lib/postgresql/data/pgdb
            - POSTGRES_USER=${INVENTREE_DB_USER:?You must provide the 'INVENTREE_DB_USER' variable in the .env file}
            - POSTGRES_PASSWORD=${INVENTREE_DB_PASSWORD:?You must provide the 'INVENTREE_DB_PASSWORD' variable in the .env file}
            - POSTGRES_DB=${INVENTREE_DB_NAME:?You must provide the 'INVENTREE_DB_NAME' variable in the .env file}
        volumes:
            # Map 'data' volume such that postgres database is stored externally
            - ${INVENTREE_EXT_VOLUME:?You must specify the 'INVENTREE_EXT_VOLUME' variable in the .env file!}:/var/lib/postgresql/data/:z
        healthcheck:
            test: ['CMD-SHELL', 'pg_isready -U "$${POSTGRES_USER}" -d "$${POSTGRES_DB}"']
            interval: 15s
            timeout: 5s
            retries: 10
            start_period: 20s
        restart: unless-stopped

    # redis acts as database cache manager
    inventree-cache:
        image: redis:7-alpine
        container_name: inventree-cache
        # Disable disk persistence to avoid permission errors on Windows bind mounts.
        # The /data volume is retained for layout consistency (#11100); cache data is ephemeral.
        command: redis-server --save "" --appendonly no
        env_file:
            - .env
        expose:
            - ${INVENTREE_CACHE_PORT:-6379}
        volumes:
            - ${INVENTREE_EXT_VOLUME}/redis:/data
        healthcheck:
            test: ['CMD', 'redis-cli', 'ping']
            interval: 15s
            timeout: 5s
            retries: 10
            start_period: 10s
        restart: always

    # InvenTree web server service
    # Uses gunicorn as the web server
    inventree-server:
        # If you wish to specify a particular InvenTree version, do so here
        image: inventree/inventree:${INVENTREE_TAG:-stable}
        container_name: inventree-server
        # Only change this port if you understand the stack.
        expose:
            - ${INVENTREE_WEB_PORT:-8000}
        depends_on:
            inventree-db:
                condition: service_healthy
            inventree-cache:
                condition: service_healthy
        env_file:
            - .env
        environment:
          INVENTREE_SERVER: http://inventree-server:${INVENTREE_WEB_PORT}
        volumes:
            # Data volume must map to /home/inventree/data
            - ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
        healthcheck:
            test:
                [
                    'CMD-SHELL',
                    'invoke server-health --address "http://localhost:$${INVENTREE_WEB_PORT:-8000}"',
                ]
            interval: 20s
            timeout: 5s
            retries: 10
            start_period: 60s
        restart: unless-stopped

    # Background worker process handles long-running or periodic tasks
    inventree-worker:
        # If you wish to specify a particular InvenTree version, do so here
        image: inventree/inventree:${INVENTREE_TAG:-stable}
        container_name: inventree-worker
        command: invoke worker
        depends_on:
            inventree-server:
                condition: service_healthy
        env_file:
            - .env
        volumes:
            # Data volume must map to /home/inventree/data
            - ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
        healthcheck:
            test: ['CMD-SHELL', 'invoke worker-health']
            interval: 60s
            timeout: 10s
            retries: 3
            start_period: 180s
        restart: unless-stopped

    # caddy acts as reverse proxy and static file server
    # You can adjust the ports that the proxy listens on via the .env file
    # https://hub.docker.com/_/caddy
    inventree-proxy:
        container_name: inventree-proxy
        image: caddy:alpine
        restart: always
        depends_on:
            inventree-server:
                condition: service_healthy
            inventree-worker:
                condition: service_healthy
        ports:
            - ${INVENTREE_HTTP_PORT:-80}:80
            - ${INVENTREE_HTTPS_PORT:-443}:443
        env_file:
            - .env
        healthcheck:
            test: ['CMD', 'wget', '--spider', '-q', 'http://127.0.0.1:9090/api/system/health/']
            interval: 20s
            timeout: 5s
            retries: 10
            start_period: 20s
        volumes:
            - ./Caddyfile:/etc/caddy/Caddyfile:ro,z
            - ${INVENTREE_EXT_VOLUME}/static:/var/www/static:z
            - ${INVENTREE_EXT_VOLUME}/media:/var/www/media:z
            - ${INVENTREE_EXT_VOLUME}:/var/log:z
            - ${INVENTREE_EXT_VOLUME}:/data:z
            - ${INVENTREE_EXT_VOLUME}:/config:z

This file may be out of date. Check the Inventree documentation for current setup steps.

Open-source health

Free and Open Source Software

Source: isitreallyfoss.com · reviewed Jun 2025

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Sep 28, 2026

Alternatives to Inventree

Part-DB logo

Part-DB

1.9k
An open-source web-based inventory management system for electronic components.
Inventory ManagementManufacturingSelf Hosting Solutions+1
Details
Open QuarterMaster logo

Open QuarterMaster

80
Open QuarterMaster is an open source inventory management system designed to be modular, extensible, and deployable in many environments.
Inventory ManagementResource PlanningSelf Hosting Solutions+1
Details
ERPNext logo

ERPNext

41.6k
ERPNext is a free and open-source ERP system for managing business operations such as accounting, inventory, manufacturing, assets, and projects.
Resource PlanningInventory ManagementManufacturing+4
Details
Spoolman logo

Spoolman

3.1k
Spoolman is a self-hosted web service for managing 3D-printer filament spool inventory and tracking spool usage.
Inventory ManagementManufacturingPermissive License+1
Details
Dolibarr logo

Dolibarr

7.9k
Dolibarr ERP & CRM is an open-source business management suite for handling contacts, quotes, invoices, orders, stock, agenda, HR, manufacturing, and related operations.
Resource PlanningCRM SystemsInventory Management+4
Details
Odoo logo

Odoo

56.1k
Odoo is a suite of web-based open source business apps that can be used individually or combined into an ERP.
Resource PlanningCopyleft LicenseCRM Systems+6
Details
Bigcapital logo

Bigcapital

4.3k
Bigcapital is open-source accounting and inventory software for small and medium businesses.
Budgeting and FinanceInventory ManagementCopyleft License+2
Open Core
Details
OFBiz logo

OFBiz

1.2k
Apache OFBiz is an enterprise resource planning (ERP) system written in Java with libraries, entities, services, and features for running business operations.
Resource PlanningE-Commerce SolutionsInventory Management+4
Details

Related Software

VoucherVault logo

VoucherVault

515
A Django web application for storing and managing vouchers, coupons, loyalty cards, and gift cards digitally.
Budgeting and FinanceCopyleft LicenseInventory Management+1
Details
Shopware Community Edition logo

Shopware Community Edition

3.5k
Shopware is an open source e-commerce platform and framework for building shopping cart and headless commerce experiences.
E-Commerce SolutionsPermissive LicenseCMS Platforms+2
Details
MedusaJs logo

MedusaJs

37.4k
Medusa is a commerce platform and customization framework for building custom digital commerce applications.
E-Commerce SolutionsInventory ManagementPermissive License
Details
Invoice Ninja logo

Invoice Ninja

10.6k
Invoice Ninja 5 is an invoicing application with hosted and self-hosted options for managing client billing and related workflows.
Budgeting and FinanceTime TrackingTask Management+1
Source Available
Details
MantisBT logo

MantisBT

1.8k
MantisBT is a web-based bug tracker for issue and project management.
Ticketing SystemsDev Project ManagementSelf Hosting Solutions+1
Details
LedgerSMB logo

LedgerSMB

579
A free web-based double-entry accounting and ERP system for small and medium businesses.
Resource PlanningCopyleft LicenseBudgeting and Finance+4
Single Container
Details