Skip to content

How to Set Up Snipe-IT on a Linux Server – Manage IT Equipment, Licenses, and Accessories

Set up Snipe-IT as a One-Click App or with Docker Compose on a VPS to manage laptops, licenses, and accessories with checkout history and labels.

1 December 202611 min read0 Views0 helpful

Introduction

Snipe-IT is open-source software for IT inventory management. Use it to track laptops, monitors, smartphones, software licenses, accessories, and consumables, check devices out to employees, and check them back in. For each device, you can see who currently has it, when it was purchased, when its warranty expires, and what has happened to it in the past. Snipe-IT generates barcodes and QR codes for labels.

In this guide, we’ll show you two ways to get started: the easy way—as a One-Click App, with Snipe-IT, its database, and an admin account up and running in just a few minutes—and a manual installation using Docker Compose. Then you’ll learn how to set up email delivery and add your first devices.

When Snipe-IT Makes Sense on a VPS

Setting up your own Snipe-IT installation is worthwhile if:

  • You’ve lost track of company devices and want to replace your Excel spreadsheets.
  • Devices are checked out to employees and you need to track who has what, for example during onboarding and offboarding.
  • You want to keep track of licenses and warranties, such as software licenses that are about to expire or warranty periods.
  • You take inventory using labels and want to find devices quickly using QR codes or barcodes.
  • You want to keep your data under your control rather than with a third-party SaaS provider.

Snipe-IT is less suitable if you’re looking for a full help desk or ticketing system, or want to document networks, racks, and IP addresses. There are dedicated tools for that, such as NetBox for network documentation.

The Easy Way: Snipe-IT as a One-Click App

With your VPS’s One-Click Apps, you can launch Snipe-IT with a MariaDB database. ZapX sets up your domain and HTTPS for you, and the app creates the admin account during installation. You don’t need to go through Snipe-IT’s setup wizard.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See VPS: One-Click Apps for instructions.
  • At least 768 MB RAM, 1 vCPU core, and 3 GB storage. We recommend 2 GB RAM, 2 vCPU cores, and 10 GB storage, especially if you’re uploading many devices, images, or files.
  • An address for Snipe-IT: either a free subdomain on zap.cloud or your own domain.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search the App catalog for “Snipe-IT” and click Install app for Snipe-IT.
  3. Enter a name under App name and select the address where Snipe-IT should be available under Use a custom subdomain or zap.cloud. Snipe-IT will use HTTPS with a domain.
  4. You can customize some values under App configuration. There are no required fields; all fields have default values:
FieldDefaultMeaning
ADMIN_EMAILadmin@example.comAdmin account email address and recipient for alerts
SITE_NAMESnipe-ITName of your inventory system, such as your company name
APP_LOCALEen-USInterface language, for example de-DE
DEFAULT_CURRENCYEURCurrency for purchase prices
APP_TIMEZONEUTCTime zone, for example Europe/Berlin
MAIL_MAILER, MAIL_HOST, and other MAIL_*log or emptyEmail delivery credentials; see “Set Up Email Delivery” below
  1. Click Queue installation.

The initial installation takes a few minutes: the server downloads the Snipe-IT image, a setup container creates the database, admin account, and basic settings, and then the website starts. The app will show as Online once this is complete. The Snipe-IT setup wizard (/setup) is not available with the One-Click App: if you open that address, you’ll go straight to the login page.

Info: Set the name, language, and currency at the start

The app only applies ADMIN_EMAIL, SITE_NAME, APP_LOCALE, and DEFAULT_CURRENCY to Snipe-IT’s settings during the initial installation. Later changes to the app environment won’t affect them. You can then change these values in Snipe-IT itself, in the admin settings (gear icons in the top-right corner) under “General Settings” and “Localization.”

First Login: Find Your Credentials

The app generates the admin username and password during installation. The “Login” note on the app card points this out as well. You can find the credentials in the app settings (gear icon) under App environment > Automatically generated values. Click the eye icon to show a value or the copy icon to copy it.

ValueMeaning
SERVICE_USER_ADMINAdmin account username
SERVICE_PASSWORD_ADMINAdmin account password
SERVICE_BASE64_APPKEYKey Snipe-IT uses to protect sessions and encrypted fields
SERVICE_PASSWORD_DBDatabase password; only needed for your own database backups
SERVICE_PASSWORD_DBROOTDatabase root password

Open Snipe-IT using the app card’s Access link and sign in with SERVICE_USER_ADMIN as the username and SERVICE_PASSWORD_ADMIN as the password. You’ll land on the dashboard, where the admin account is named “Admin.”

If you didn’t change ADMIN_EMAIL during installation, the admin account will still show admin@example.com. Enter your actual email address in two places:

  • Admin account: In the left sidebar, open and edit the “Admin” user under “People.” You can also change the username and password here if you want to use your own values. The values in the app environment will no longer apply.
  • Alerts: In the admin settings (gear icons in the top-right corner), under “Notifications,” in the “Send alerts to” field.
Warning: Never change the app key

Leave SERVICE_BASE64_APPKEY as it is after installation. If you replace it, Snipe-IT won’t be able to read encrypted fields, and all logins will become invalid.

Set Up Email Delivery

By default, Snipe-IT doesn’t send emails: MAIL_MAILER is set to log, so emails are only written to the log. Password resets, checkout confirmations, and alerts about expiring licenses won’t be delivered. Enter your email provider’s details in the app environment, not in Snipe-IT. You can also set them during installation under App configuration.

  1. Open the app settings (gear icon) > App environment.
  2. Set the following values under App configuration:
FieldExampleMeaning
MAIL_MAILERsmtpSend via SMTP. With the default log setting, Snipe-IT only writes emails to the log
MAIL_HOSTsmtp.example.comYour email provider’s SMTP server
MAIL_PORT587Port; the default is 587
MAIL_USERNAMEinventory@example.comUsername with your email provider
MAIL_PASSWORDMailbox passwordPassword with your email provider
MAIL_FROM_ADDRinventory@example.comSender address, also used as the reply address
MAIL_FROM_NAMEIT InventorySender name; the default is Snipe-IT
  1. Click Save. The app will restart and apply the values. This takes about a minute, and your data will be preserved.

To check that email delivery works, open the Snipe-IT admin settings (gear icons in the top-right corner) > “General Settings,” then click “Send Test” next to “Test Mail.” Snipe-IT will send a test email to the address in MAIL_FROM_ADDR. If you see “Mail could not be sent,” the server, port, or credentials are incorrect.

Updates and Backups

  • Updates: The One-Click App uses a fixed version of Snipe-IT (currently 8.8.4). Open the app settings (gear icon) > App update and click Check for updates. If a new version is available, install it using Apply update. Snipe-IT updates the database when it starts, and the admin account and settings are preserved.
  • Backups: A VPS backup from the Backups tab includes the db-data (database) and storage (uploads, images, keys) volumes. Snipe-IT can also create its own ZIP backups in the admin settings under “Backups & Restore” using “Generate Backup,” which you can download.
  • Uninstall: Under App actions > Uninstall app, you can also delete the data volumes. This permanently deletes all devices, accounts, and uploads.

Manual Installation

The rest of this guide describes a manual installation of Snipe-IT with Docker Compose, for example on a server without One-Click Apps. You’ll use the official snipe/snipe-it image and a MariaDB database, with nginx serving Snipe-IT over HTTPS.

Requirements

MinimumRecommended
CPU1 vCPU core2 vCPU cores
RAM768 MB2 GB
Storage3 GB free10 GB

You’ll also need:

Prepare the Firewall

Snipe-IT itself only listens on the server. Only SSH, HTTP, and HTTPS need to be open to the outside:

Code
sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Don’t expose a database port externally. For more about ufw, see VPS: Open Ports and Manage the Firewall on Linux.

Install with Docker Compose

Create a directory and generate an app key and two database passwords:

Code
sudo mkdir -p /opt/snipe-it && cd /opt/snipe-it
echo "base64:$(openssl rand -base64 32)"
openssl rand -hex 24
openssl rand -hex 24

Create the /opt/snipe-it/.env file and enter the generated values:

Code
APP_ENV=production
APP_DEBUG=false
APP_KEY=base64:APP_KEY_AUS_DEM_ERSTEN_BEFEHL
APP_URL=https://snipeit.example.com
APP_TIMEZONE=Europe/Berlin
APP_LOCALE=de-DE
APP_TRUSTED_PROXIES=127.0.0.1,172.16.0.0/12

DB_CONNECTION=mariadb
DB_HOST=db
DB_PORT=3306
DB_DATABASE=snipeit
DB_USERNAME=snipeit
DB_PASSWORD=DB_PASSWORD

MYSQL_DATABASE=snipeit
MYSQL_USER=snipeit
MYSQL_PASSWORD=DB_PASSWORD
MYSQL_ROOT_PASSWORD=DB_ROOT_PASSWORD

MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=inventar@example.com
MAIL_PASSWORD=MAIL_PASSWORD
MAIL_FROM_ADDR=inventar@example.com
MAIL_FROM_NAME=IT-Inventar

Protect the file with sudo chmod 600 /opt/snipe-it/.env. Then create /opt/snipe-it/docker-compose.yml:

Code
services:
  app:
    image: snipe/snipe-it:v8.8.4
    restart: unless-stopped
    env_file: .env
    ports:
      - "127.0.0.1:8000:80"
    volumes:
      - storage:/var/lib/snipeit
    depends_on:
      db:
        condition: service_healthy

  db:
    image: mariadb:11.4.7
    restart: unless-stopped
    env_file: .env
    volumes:
      - db-data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 5s
      timeout: 3s
      retries: 10

volumes:
  storage:
  db-data:

Important lines:

  • image: snipe/snipe-it:v8.8.4 sets the version. To update, you only need to change this line.
  • 127.0.0.1:8000:80 makes Snipe-IT available only on the server itself; external access goes through nginx.
  • APP_URL must exactly match the address you use to access Snipe-IT. Snipe-IT rejects requests to other addresses with “Bad Request.”
  • APP_TRUSTED_PROXIES tells Snipe-IT to trust requests from nginx or the Docker network, so it can recognize HTTPS behind the reverse proxy.
  • The storage volume contains Snipe-IT uploads, images, keys, and backups; db-data contains the database.

Start Snipe-IT:

Code
sudo docker compose up -d
sudo docker compose logs -f app

On the first start, Snipe-IT creates the database tables. Once supervisord started appears in the log, the app is ready. Stop the log output with Ctrl+C.

Access via HTTPS Through a Reverse Proxy

Install nginx and Certbot, then create /etc/nginx/sites-available/snipe-it:

Code
server {
    listen 80;
    server_name snipeit.example.com;

    client_max_body_size 50M;

    # Only during setup: restrict access to your own IP address
    allow DEINE_IP;
    deny all;

    location / {
        proxy_pass http://127.0.0.1:8000;
        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;
    }
}
Code
sudo apt install -y nginx certbot python3-certbot-nginx
sudo ln -s /etc/nginx/sites-available/snipe-it /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d snipeit.example.com

For more details, see VPS: Set Up an nginx Reverse Proxy on Linux and VPS: Create an SSL Certificate (Let's Encrypt) for Linux Servers.

First Visit and Admin Account

With a manual installation, Snipe-IT guides you through a setup wizard the first time you visit. The first person to complete it becomes the admin. That’s why the allow and deny lines in the nginx block initially limit access to your own IP address.

Warning: Never leave the setup wizard open to the internet

As long as there is no admin account, anyone who visits the address can make themselves an admin. Complete the wizard as soon as you start the app, and only make the site publicly accessible afterward.

  1. Visit https://snipeit.example.com. The wizard first checks the environment, verifies the database tables, and then asks you to create the admin account.
  2. Enter the website name, your name, email address, username, and a secure password, then save.
  3. Then remove the allow DEINE_IP; and deny all; lines from the nginx block and reload nginx: sudo systemctl reload nginx.

Back Up Your Data

Regularly back up the database and the storage volume:

Code
cd /opt/snipe-it
sudo docker compose exec db sh -c 'mariadb-dump -u root -p"$MYSQL_ROOT_PASSWORD" snipeit' > snipeit-$(date +%F).sql
sudo docker run --rm -v snipe-it_storage:/data -v "$PWD":/backup alpine tar czf /backup/snipeit-storage-$(date +%F).tar.gz -C /data .

The volume name is made up of the directory name and storage; use sudo docker volume ls to find the exact name. You can also create ZIP backups in Snipe-IT under “Backups & Restore” in the admin settings. Keep the .env file containing APP_KEY safe as well; without it, you can’t fully restore a backup.

Update Snipe-IT

  1. Back up the database and volume as described above.
  2. Enter the new version in docker-compose.yml, for example snipe/snipe-it:v8.8.5. See the Snipe-IT releases for available versions.
  3. Download the image and restart:
Code
cd /opt/snipe-it
sudo docker compose pull
sudo docker compose up -d

The container runs the database migrations on startup. Before making larger version jumps, read the notes in the release notes.

Getting Started with Snipe-IT

To keep your device records organized, start by adding the basic information. You’ll find it in the left sidebar under “Settings.” Add devices, licenses, and users using “Create New” at the top of the page. The gear icons in the top-right corner open Snipe-IT’s admin settings (branding, language, notifications, and backups).

Add Basic Information

  1. Status Labels: Under “Status Labels.” A status indicates whether a device is ready to use, being repaired, or retired. Add the statuses you need, such as “Ready to Deploy,” “Under Repair,” and “Archived.”
  2. Categories: Under “Categories,” add categories such as laptops, monitors, smartphones, and licenses.
  3. Manufacturers and models: Under “Manufacturers” and “Asset Models.” A model, such as “ThinkPad T14 Gen 5,” belongs to a manufacturer and a category. All devices of that type then use the same model.
  4. Locations and departments: Under “Locations” and “Departments.” These help with filtering and inventory counts.

Add and Check Out Devices

  • Under “Create New” > “Asset,” add a device with its model, serial number, purchase date, and purchase price. The “Asset Tag” is the inventory number on the label.
  • Use “Checkout” to assign a device to a person, location, or another device, and “Checkin” to take it back. Both actions are recorded in the device’s history.
  • Import many devices at once using a CSV file via “Import” in the left sidebar.
  • Print labels with QR codes or barcodes directly from the device list.

Limitations

  • Snipe-IT doesn’t discover devices on your network automatically. Add data manually, import it from a CSV file, or use the REST API.
  • You need an SMTP server for email, such as checkout confirmations and alerts about expiring licenses.
  • Snipe-IT is not a ticketing system. You can record repairs and maintenance on a device, but you’ll need another tool to manage user requests.

Conclusion

Snipe-IT brings your devices, licenses, and accessories together in one place, so you always know who has what. The quickest way to get started is as a One-Click App: the database, HTTPS, and admin account are ready in just a few minutes, and you can install updates in the ZapX dashboard. A manual installation with Docker Compose is a good choice if you want to run Snipe-IT on a server without One-Click Apps or configure every setting yourself.

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

For most people, the One-Click App is the quickest option: the database, HTTPS, and admin account are ready in just a few minutes, and you can install updates in the ZapX dashboard. Manual installation with Docker Compose is a good choice if you’re using a server without One-Click Apps, want to use your own reverse proxy, or want to configure every setting yourself in the .env file.
With the One-Click App, installation generates the admin username and password. Find them in the app settings (gear icon) under App environment > Automatically generated values as SERVICE_USER_ADMIN and SERVICE_PASSWORD_ADMIN. The One-Click App doesn’t have a setup wizard. With a manual installation, you create the admin account in the setup wizard.
By default, MAIL_MAILER is set to log, so Snipe-IT only writes emails to the log. For the One-Click App, set MAIL_MAILER=smtp and configure MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, and MAIL_FROM_ADDR under App configuration in the app environment, then save. The app will restart. For a manual installation, enter the same values in the .env file. Test email delivery in Snipe-IT under General Settings by clicking Send Test.

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.