Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
An open-source inventory management system for low-level stock control and part tracking. A Python/Django backend provides a web interface and a REST API, a React front end sits on top, and a plugin system adds custom applications and extensions. The Docker setup runs a server, a background worker, PostgreSQL and a Caddy proxy that serves static and media files.
Runs on a VPS from $6/mo (Kamatera 2GB, 2 GB RAM) · prices checked Nov 2026
Fits home hardware (697 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Pick InvenTree when you need stock control and part tracking beyond a household list: it is built for makers and small manufacturers who keep parts, stock locations and suppliers in one database and reach it through a web interface or the REST API. A Python/Django backend, a React front end and a plugin system for custom applications and extensions; it is MIT-licensed. Our snippet follows the project's production Docker setup (server, background worker, PostgreSQL and a Caddy proxy that serves static and media files) with the image pinned to 1.7.0, and it runs the documented `invoke update` step and creates the admin account from environment variables. We left out the optional Redis cache container, which the docs describe as optional. We did not find an upstream RAM minimum, so our 1024 MB floor is an estimate. Part-DB is the lighter, electronics-focused option in the catalog, Homebox suits a home inventory and Snipe-IT tracks IT assets checked out to people.
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# InvenTree — inventory and parts management — based on the project's Docker setup (contrib/container), pinned to 1.7.0
mkdir -p inventree-data
curl -fsSL -o Caddyfile https://raw.githubusercontent.com/inventree/InvenTree/1.7.0/contrib/container/Caddyfile
SERVER_IP=$(curl -4 -fsS --retry 3 https://ifconfig.me) # or set your server's IP or domain
DB_PW=$(openssl rand -hex 12)
ADMIN_PW=$(openssl rand -hex 8)
cat > .env <<EOF
COMPOSE_PROJECT_NAME=inventree
INVENTREE_TAG=1.7.0
INVENTREE_SITE_URL=http://$SERVER_IP:8080
INVENTREE_WEB_PORT=8000
INVENTREE_USE_X_FORWARDED_HOST=True
INVENTREE_USE_X_FORWARDED_PORT=True
INVENTREE_USE_X_FORWARDED_PROTO=True
INVENTREE_EXT_VOLUME=./inventree-data
INVENTREE_LOG_LEVEL=WARNING
INVENTREE_PLUGINS_ENABLED=True
INVENTREE_AUTO_UPDATE=True
INVENTREE_DB_ENGINE=postgresql
INVENTREE_DB_NAME=inventree
INVENTREE_DB_HOST=inventree-db
INVENTREE_DB_PORT=5432
INVENTREE_DB_USER=inventree
INVENTREE_DB_PASSWORD=$DB_PW
INVENTREE_GUNICORN_TIMEOUT=90
INVENTREE_ADMIN_USER=admin
INVENTREE_ADMIN_EMAIL=admin@example.com
INVENTREE_ADMIN_PASSWORD=$ADMIN_PW
EOF
cat > docker-compose.yml <<'EOF'
services:
inventree-db:
image: postgres:17
expose:
- 5432/tcp
environment:
- PGDATA=/var/lib/postgresql/data/pgdb
- POSTGRES_USER=${INVENTREE_DB_USER}
- POSTGRES_PASSWORD=${INVENTREE_DB_PASSWORD}
- POSTGRES_DB=${INVENTREE_DB_NAME}
volumes:
- ${INVENTREE_EXT_VOLUME}:/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
inventree-server:
image: inventree/inventree:${INVENTREE_TAG}
expose:
- 8000
depends_on:
inventree-db:
condition: service_healthy
env_file:
- .env
environment:
INVENTREE_SERVER: http://inventree-server:8000
volumes:
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
healthcheck:
test: ['CMD-SHELL', 'invoke server-health --address "http://localhost:8000"']
interval: 20s
timeout: 5s
retries: 10
start_period: 60s
restart: unless-stopped
inventree-worker:
image: inventree/inventree:${INVENTREE_TAG}
command: invoke worker
depends_on:
inventree-server:
condition: service_healthy
env_file:
- .env
volumes:
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
restart: unless-stopped
inventree-proxy:
image: caddy:alpine
restart: always
depends_on:
inventree-server:
condition: service_healthy
ports:
- 8080:8080
env_file:
- .env
environment:
INVENTREE_SERVER: http://inventree-server:8000
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
EOF
docker compose run --rm inventree-server invoke update
docker compose up -d
timeout 300 bash -c "until curl -fsS -H 'Host: $SERVER_IP:8080' http://localhost:8080/api/ >/dev/null; do sleep 5; done"
# → http://SERVER_IP:8080 — sign in as admin with the INVENTREE_ADMIN_PASSWORD in .env, then remove the three INVENTREE_ADMIN_* linesInvenTree's Docker, configuration and processes documentation flag these before you rely on it:
InvenTree used 697 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 1024 MB.
The InvenTree install snippet is marked verified on Ubuntu 26.04 (Nov 2026).