---
title: "Deploy Inventree - Complete Setup"
description: "[Jul'26] Deploy InvenTree with worker, Redis, Postgres & Railway Bucket 📦"
category: "Other"
url: https://railway.com/deploy/inventree-complete-setup
---

# Deploy Inventree - Complete Setup

[Jul'26] Deploy InvenTree with worker, Redis, Postgres & Railway Bucket 📦

**[Deploy Inventree - Complete Setup on Railway](https://railway.com/template/inventree-complete-setup)**

- **Creator:** codestorm
- **Category:** Other
- **Total deploys:** 2

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Inventree Worker https://inventree.org/assets/logo.png

- **Image:** inventree/inventree:stable
- **Start command:** `bash -lc 'invoke wait && invoke worker'`

### InvenTree https://inventree.org/assets/logo.png

- **Image:** inventree/inventree:stable
- **Start command:** `bash -lc 'python3 -m pip install --no-cache-dir pip-licenses && export PATH="/usr/local/bin:/root/.local/bin:$PATH" && invoke update --skip-backup && cd /home/inventree/src/backend/InvenTree && gunicorn InvenTree.wsgi:application --bind 0.0.0.0:${PORT:-8000}'`
- **Public domain:** Yes

## Buckets

- **Bucket**

## Documentation

# Deploy and Host InvenTree on Railway

InvenTree is an open-source inventory management system for tracking parts, stock, suppliers, purchase orders, sales orders, and manufacturing workflows. It helps teams manage physical inventory and production data from a centralized web interface, with background workers handling asynchronous jobs and scheduled tasks.

## About Hosting InvenTree

Hosting InvenTree involves running the main web application together with the services it needs for database storage, caching, background jobs, and persistent file uploads. This Railway template includes Postgres for application data, Redis for cache and queue coordination, an InvenTree worker service for background processing, and Railway Bucket for storing uploaded files and media. Splitting the worker from the main app makes the deployment better suited for production-style inventory workflows, where long-running or asynchronous tasks should not block the web service. Railway connects these services in one deployable stack so you can launch InvenTree without manually managing infrastructure.

![Imgur](https://imgur.com/401lnWx.png)

## Common Use Cases

* Inventory and stock management for engineering, hardware, or manufacturing teams
* Parts, supplier, purchase order, and sales order tracking
* Managing uploaded media, attachments, reports, and background inventory tasks

## Dependencies for InvenTree Hosting

* InvenTree application service
* InvenTree worker service
* Postgres database
* Redis instance
* Railway Bucket for persistent media and uploaded files

### Deployment Dependencies

* InvenTree documentation: [https://docs.inventree.org/](https://docs.inventree.org/)
* InvenTree Docker image: [https://hub.docker.com/r/inventree/inventree](https://hub.docker.com/r/inventree/inventree)
* InvenTree GitHub repository: [https://github.com/inventree/InvenTree](https://github.com/inventree/InvenTree)
* Railway Postgres: [https://railway.com/docs/databases/postgresql](https://railway.com/docs/databases/postgresql)
* Railway Redis: [https://railway.com/docs/databases/redis](https://railway.com/docs/databases/redis)
* Railway Volumes and Buckets: [https://railway.com/docs/reference/volumes](https://railway.com/docs/reference/volumes)

## Why Deploy InvenTree on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying InvenTree on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/inventree-complete-setup
