Deploy Part-DB

Inventory manager for electronic parts, stock, BOMs and datasheets.

Deploy Part-DB

/var/lib/postgresql/data

/var/www/html/public/_storage

Deploy and Host Part-DB on Railway

Part-DB is an open-source inventory manager for electronic components. It tracks parts, their storage locations, stock, suppliers, prices, datasheets and pictures, and links parts to projects and bills of materials. It runs in the browser, supports several users with fine-grained permissions, and can pull part data from distributors.

About Hosting Part-DB

Part-DB is a PHP (Symfony) web app served by Apache. It needs a database and a persistent folder for uploaded attachments. This template deploys the official Part-DB 2.20.6 image from a GitHub repo, with Railway's PostgreSQL and one volume for public and private attachments. On every start the app backs up the database and runs any pending migrations, so updates apply themselves. The admin password, the app secret and the database password are generated at deploy time, so nothing runs with a default password. Railway gives the app an HTTPS domain, and the wrapper sets Part-DB's trusted proxy and public URL to match.

Common Use Cases

  • Keep track of an electronics lab's or maker space's component stock and storage locations
  • Manage parts, datasheets and suppliers for hardware projects and build bills of materials
  • Share one parts inventory with a team, with per-user permissions and an audit log

Dependencies for Part-DB Hosting

  • PostgreSQL (Railway's PostgreSQL service, included)
  • A volume for uploaded attachments and automatic database backups (included)

Deployment Dependencies

Implementation Details

After the deploy finishes, open the Part-DB service's Variables tab and copy INITIAL_ADMIN_PW. Log in at your Railway domain as admin with that password. Part-DB asks you to choose a new password at the first login.

Settings you may want to change before you add data, as service variables: BASE_CURRENCY (default USD, can't be changed later), DEFAULT_TIMEZONE (default UTC), DEFAULT_LANG (default en) and INSTANCE_NAME. Email, single sign-on, TRUSTED_HOSTS and part information providers are optional and described in the Part-DB configuration docs.

Updates arrive as changes to the template repo. Railway shows them in your project, and you choose when to apply them.

Why Deploy Part-DB 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 Part-DB 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.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0