Skip to content

Set Up Homebox on a Linux Server – Manage Inventory with Photos, Receipts, and QR Codes

Homebox on a Linux server: as a One-Click App or with Docker Compose, with a secure first account, invites, photos and QR codes for your inventory.

1 December 202612 min read0 Views0 helpful

Introduction

Homebox is open-source inventory management software for your home, hobbies, and small workshops. You can add items with photos, receipts, serial numbers, and warranty details, assign them to locations such as “Basement” or “Garage,” and find them later using search or a QR code label. Homebox is now maintained by the sysadminsmedia project, runs as a single container, and stores everything in a SQLite database. As a result, it requires very little memory. In this guide, we’ll show you two ways to install it: the easy way, as a One-Click App, which makes Homebox available over HTTPS in just a few clicks, and a manual installation with Docker Compose. After that, you’ll build your inventory with locations, photos, labels, and QR codes.

When It Makes Sense to Run Homebox on a VPS

Homebox is useful as soon as you no longer want to keep track of what you own and where it is. Homebox is a good fit for a VPS if:

  • multiple people in your household need to manage the same inventory, whether from a phone, laptop, or on the go.
  • you want to keep receipts and warranties in one place, for example, for home contents insurance or a claim.
  • you want to label boxes, shelves, and storage areas and see what’s inside with a QR code.
  • you want to keep your data under your control instead of using someone else’s inventory app.
  • you want to keep track of maintenance dates for devices such as smoke detectors, heating systems, or tools.

Homebox is less suitable if you’re looking for an inventory management system with stock transactions, suppliers, and invoices. Homebox doesn’t track transactions or support multiple warehouses; it’s designed for your personal belongings. Specialized apps are better for tracking food and supplies with expiration dates.

The Easy Way: Homebox as a One-Click App

The fastest way to get started with Homebox is through the One-Click Apps on your VPS. The app is available directly over HTTPS with a domain, and the installation automatically generates the secret key Homebox needs to start. You don’t need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • Homebox itself is lightweight: in our test, it used less than 200 MB of RAM with one account and a few initial items. Still, plan for at least 1 GB of RAM and enough storage for photos and documents, as these grow along with your inventory.

Install

  1. Open your VPS in the ZapX Dashboard and go to the One-Click Apps tab.
  2. Search the app catalog for Homebox and click Install app.
  3. Use a custom subdomain or zap.cloud is already selected, with a randomly generated name. Leave it enabled or enter a custom name, such as inventory.
  4. You don’t need to enter anything under App configuration. All fields are optional:
    • HBOX_OPTIONS_ALLOW_REGISTRATION is set to false. This prevents anyone from creating an account themselves. The next section explains how to create your first account.
    • HBOX_WEB_MAX_UPLOAD_SIZE is the maximum size of an uploaded file in MB (default 10).
    • HBOX_MAILER_HOST, HBOX_MAILER_PORT, HBOX_MAILER_USERNAME, HBOX_MAILER_PASSWORD, and HBOX_MAILER_FROM are the credentials for an SMTP mailbox. Homebox uses them to send password reset emails.
    • HBOX_LOG_LEVEL and HBOX_LOG_FORMAT control logging output.
  5. Click Queue installation.

Homebox will be available through the Access link on the app card in a minute or two. On first launch, Homebox creates its database.

The installation generates the secret key Homebox needs to start (HBOX_AUTH_API_KEY_PEPPER, required since version 0.26). You can find it in the app settings under App environment > Automatically generated values as SERVICE_PASSWORD_64_PEPPER. You don’t need to enter anything there. The value stays the same across restarts and updates, which is important because Homebox uses it to secure API keys.

Create Your First Account

Homebox doesn’t come with a default admin account. Accounts are created through the registration page. Since registration is disabled in the One-Click App for security reasons, the sign-in page initially shows “Registration Disabled.” The reminder “Create your first account” on the app card guides you through the following steps:

  1. Click the gear icon on the app card and go to App environment.
  2. Open App configuration, set HBOX_OPTIONS_ALLOW_REGISTRATION to true, and click Save. Homebox will restart with the new value.
  3. Open Homebox using the Access link. The sign-in page will now have a Register button.
  4. Enter your email address, a name, and a password, then click Register. Homebox will display “User registered.”
  5. Sign in with your email address and password. Homebox creates a collection for you, including some sample locations (Attic, Basement, Garage …) and tags.
Warning: Disable registration again immediately

While HBOX_OPTIONS_ALLOW_REGISTRATION is set to true, anyone who knows the address can create an account on your Homebox instance. Others can’t see your items because each new account gets its own collection. However, they can use your server to store photos and files, and you won’t see these accounts in Homebox. So set the value back to false immediately after registering and click Save.

Invite Housemates

Invite other people instead of using open registration. Invitations work even when registration is disabled:

  1. In Homebox, click Invites under Collection on the left and create an invitation. You can set how many times it can be used and when it expires.
  2. Send the invitation link to the person. They can register through the link and will join your collection.
  3. Under Collection > Members, you can see who has access to your collection.

In our test, signing up without an invitation wasn’t possible when registration was disabled (“user registration disabled”), but signing up with an invitation worked. The invited person immediately saw all the items in the collection.

Photos, Documents, and Upload Size

Attach photos, user manuals, and receipts directly to an item. Homebox stores them alongside the database in the app’s /data directory. Larger files, such as PDF manuals or full-resolution phone photos, can quickly exceed the 10 MB limit. If that happens, increase HBOX_WEB_MAX_UPLOAD_SIZE under App environment > App configuration, for example, to 25, and click Save.

If you forget your password, Homebox can email you a link through Forgot your password? This only works if you’ve entered the HBOX_MAILER_* values for an SMTP mailbox.

Updates and Backups

Update Homebox in the app settings (gear icon), under App update. Click Check for updates and install a new version with Apply update. If it says the app is up to date, there isn’t a newer version in the app catalog yet. You can see the installed version at the bottom of every page in Homebox.

All items, accounts, photos, and documents are stored in the app’s /data directory and are preserved during updates. When a new version starts, Homebox automatically updates the database. Back up your VPS beforehand, for example, through Backups in the dashboard, so you can restore it to its previous state if something goes wrong. You can also export your inventory as a CSV file through Tools, but photos and attachments aren’t included.

Manual Installation

The rest of this guide describes how to manually install Homebox with Docker Compose on your VPS, for example, if you don’t use One-Click Apps on your server or want to run Homebox behind your own reverse proxy.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First Access via SSH.
  • Docker and Docker Compose (Compose v2). See Install Docker. Verify the installation with docker --version and docker compose version.
  • A domain or subdomain whose A record points to your VPS’s IP address (e.g. homebox.example.com).

The values below are recommended guidelines for a household. Homebox itself needs little RAM; your photos and documents will determine how much storage you need.

HardwareMinimumRecommended
CPU1 vCPU core1 vCPU core
RAM1 GB2 GB
Storage5 GB20 GB

Configure the Firewall

Homebox listens on port 7745 (HTTP). You don’t need to open this port if you use a reverse proxy as described below. With ufw, allow only SSH and the ports required by the reverse proxy:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Warning: Docker bypasses ufw

Ports published by Docker with ports: are accessible from the internet even if ufw blocks them. Docker adds its own rules before the rules from ufw. So, as described below, bind Homebox to 127.0.0.1 only. See Firewall Management on Linux for more about firewalls.

Install with Docker Compose

Since version 0.26, Homebox only starts with a secret HBOX_AUTH_API_KEY_PEPPER that is at least 32 characters long. Homebox uses it to secure stored API keys. Create a directory and write the key directly to the .env file without displaying it:

Code
mkdir -p /opt/homebox
cd /opt/homebox
echo "HBOX_AUTH_API_KEY_PEPPER=$(openssl rand -base64 48 | tr -d '\n')" > .env
echo "HBOX_OPTIONS_ALLOW_REGISTRATION=true" >> .env
chmod 600 .env

Then create the docker-compose.yml file:

Code
services:
  homebox:
    image: ghcr.io/sysadminsmedia/homebox:0.27.1
    restart: unless-stopped
    env_file: .env
    environment:
      - HBOX_LOG_LEVEL=info
      - HBOX_LOG_FORMAT=text
      - HBOX_WEB_MAX_UPLOAD_SIZE=10
      - HBOX_OPTIONS_TRUST_PROXY=true
      - HBOX_OPTIONS_ALLOW_ANALYTICS=false
    volumes:
      - homebox-data:/data
    ports:
      - "127.0.0.1:7745:7745"

volumes:
  homebox-data:

The important lines:

  • image sets the version. Pinning a specific version instead of using latest ensures that updates only happen when you want them to.
  • env_file reads the key and registration setting from .env. Don’t change HBOX_AUTH_API_KEY_PEPPER later, or all issued API keys will become invalid.
  • HBOX_OPTIONS_TRUST_PROXY=true allows Homebox to process the reverse proxy’s headers. According to the documentation, labels and some other features won’t work properly behind a proxy otherwise.
  • volumes stores the database, photos, and documents in the homebox-data volume, which is mounted at /data in the container.
  • 127.0.0.1:7745:7745 makes Homebox accessible only from the server itself. You’ll access it from outside through the reverse proxy.

Start Homebox:

Code
docker compose up -d
docker compose logs -f homebox

Homebox is ready as soon as the log shows “Server is running on :7745.” Stop viewing the logs with Strg + C.

First Visit and First Account

First, set up the reverse proxy in the next section, then open https://homebox.example.com. Click Register and create your account with an email address, name, and password. To test Homebox before setting up the proxy, forward the port to your computer using an SSH tunnel and open http://localhost:7745:

Code
ssh -L 7745:127.0.0.1:7745 root@SERVER_IP

Afterward, disable registration so no one else can create an account. Invite other people as described above under “Invite Housemates”:

Code
cd /opt/homebox
sed -i 's/HBOX_OPTIONS_ALLOW_REGISTRATION=true/HBOX_OPTIONS_ALLOW_REGISTRATION=false/' .env
docker compose up -d

docker compose up -d recreates the container with the updated value. The sign-in page will then show “Registration Disabled.”

Access over HTTPS with a Reverse Proxy

To access Homebox from outside, put a reverse proxy with a valid certificate in front of it. For the basics, see Set Up a Reverse Proxy with nginx and Create an SSL Certificate (Let's Encrypt). Here’s a server block for nginx based on the official documentation:

Code
server {
    listen 80;
    server_name homebox.example.com;
    client_max_body_size 25m;

    location / {
        proxy_pass http://127.0.0.1:7745;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 86400;
    }
}

Then get the certificate with certbot --nginx -d homebox.example.com. Certbot adds HTTPS and HTTP redirection to the block. client_max_body_size must be at least as large as HBOX_WEB_MAX_UPLOAD_SIZE; otherwise, nginx will reject larger photos with a 413 error. You also need HTTPS for the QR scanner in the browser and for copy buttons, which browsers only allow on secure pages.

Tip: Caddy as a simple alternative

With Caddy, one line in the Caddyfile is enough: homebox.example.com { reverse_proxy 127.0.0.1:7745 }. Caddy obtains the certificate automatically.

Back Up Your Data

Everything important is stored in the homebox-data volume: the SQLite database homebox.db and a folder for each collection containing photos and documents. Since SQLite initially writes changes to sidecar files, briefly stop Homebox before backing it up:

Code
cd /opt/homebox
docker compose stop
docker run --rm -v homebox_homebox-data:/data -v /opt/homebox:/backup alpine tar czf /backup/homebox-$(date +%F).tar.gz -C /data .
docker compose start

The volume name combines the directory name and the name in the Compose file; here, it’s homebox_homebox-data. Check it with docker volume ls. Also back up .env and docker-compose.yml, and don’t store the backup only on the VPS itself.

Update Homebox

Back up your data first and read the new version’s Release Notes. Then update the version for the image in docker-compose.yml and restart Homebox:

Code
cd /opt/homebox
docker compose pull
docker compose up -d

When it starts, Homebox updates the database for the new version. You’ll see lines from goose in the log and “successfully migrated database” at the end. If you’re upgrading from a version before 0.26 and Homebox no longer starts, the HBOX_AUTH_API_KEY_PEPPER key is usually missing. Add it to .env as described above.

Build Your Inventory: Locations, Items, and QR Codes

Once Homebox is set up, you can start adding your belongings. The interface works in a browser on both computers and phones, so you don’t need a separate app.

Create Locations and Tags

Homebox assigns each item to a location. Locations can be nested, for example, “Basement” > “Shelf 2” > “Electrical box.” Create them using Create > Location, or rename the sample locations under Locations. Tags are keywords that can be used across locations, such as “Electronics,” “Insured,” or “Loaned.” Create them using Create > Tag.

Items with Photos, Receipts, and Warranty Details

Use Create > Item / Asset to add an item: select a location, enter a name and description, and upload a photo if you like. On the item’s page, add more details using Edit:

  • Serial number, model, and manufacturer
  • Purchase date, retailer, and price; Homebox uses these to calculate the total value shown on the home page
  • A warranty expiration date or lifetime warranty
  • Attachments such as receipts, user manuals, or warranty certificates
  • Custom fields for anything Homebox doesn’t provide by default

Each item automatically gets an asset ID, such as 000-001. Search for #000-001 in the search bar to find it directly.

QR Codes and Labels

On each item’s page, you’ll find two icons next to Labels: Download Label downloads a label as an image, and Show QR Code displays a QR code with the item’s address. Print it and stick it on the item or box. Scan the code with your phone to go directly to the relevant page after signing in. The same works for locations, so you can see what’s in a box with one scan. Create multiple labels at once using the label generator under Tools.

Import Multiple Items from a CSV

If you already have your inventory in a spreadsheet, import it as a CSV file through Tools. According to the documentation, the import includes items, locations, and tags, including nested locations. You’ll need to upload photos and attachments manually afterward; they aren’t included in imports or exports.

Maintenance Dates and Notifications

Use an item’s Maintenance tab to schedule maintenance, such as the annual battery replacement in a smoke detector. Under Collection > Notifiers, set up a notification service such as Discord, Slack, Telegram, or email in the Shoutrrr format. Homebox will then send you a message on the maintenance date at around 8 a.m.

Limitations

  • No management of other users’ accounts: Homebox has no admin view of all accounts on the server. You can only see members of your own collection, so leave registration disabled.
  • Exports don’t include photos: CSV exports don’t include attachments. To create a complete backup, back up the data directory.
  • Printing labels directly from Homebox requires a print command to be configured on the server. On a VPS, download labels as images and print them from your own computer instead.
  • No stock transaction system: You can track quantities, but not stock additions and removals with a history.

Conclusion

You’ve set up Homebox on your VPS, created your first account, disabled registration again, and invited others to join. With locations, photos, receipts, and QR codes, you can quickly find any item and keep all your documents together for insurance or warranty claims.

Prefer not to handle Docker yourself? Choose the easy One-Click App option described above under “The Easy Way: Homebox as a One-Click App.”

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the fastest option: Homebox is available over HTTPS at your domain within minutes, its secret startup key is generated automatically, and you can install updates from App update in the dashboard. Manual installation with Docker Compose is a good choice if you don’t use One-Click Apps on your server, want to run Homebox behind your own reverse proxy, or prefer to manage the version yourself.
Registration is disabled in the One-Click App for security reasons, and Homebox doesn’t come with a default admin account. Under App environment > App configuration, set HBOX_OPTIONS_ALLOW_REGISTRATION to true and click Save. Create your account using Register on the sign-in page, then immediately set the value back to false.
Only while HBOX_OPTIONS_ALLOW_REGISTRATION is set to true. Others can’t see your items because each new account gets its own collection. However, they could use your server to store files, and Homebox won’t show you those accounts. So leave registration disabled and invite housemates through Collection > Invites. Invitations work even when registration is disabled.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.