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.
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.
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.
- 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.
- Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
- Search the App catalog for “Snipe-IT” and click Install app for Snipe-IT.
- 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.
- You can customize some values under App configuration. There are no required fields; all fields have default values:
| Field | Default | Meaning |
|---|---|---|
ADMIN_EMAIL | admin@example.com | Admin account email address and recipient for alerts |
SITE_NAME | Snipe-IT | Name of your inventory system, such as your company name |
APP_LOCALE | en-US | Interface language, for example de-DE |
DEFAULT_CURRENCY | EUR | Currency for purchase prices |
APP_TIMEZONE | UTC | Time zone, for example Europe/Berlin |
MAIL_MAILER, MAIL_HOST, and other MAIL_* | log or empty | Email delivery credentials; see “Set Up Email Delivery” below |
- 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.
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.”
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.
| Value | Meaning |
|---|---|
SERVICE_USER_ADMIN | Admin account username |
SERVICE_PASSWORD_ADMIN | Admin account password |
SERVICE_BASE64_APPKEY | Key Snipe-IT uses to protect sessions and encrypted fields |
SERVICE_PASSWORD_DB | Database password; only needed for your own database backups |
SERVICE_PASSWORD_DBROOT | Database 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.
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.
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.
- Open the app settings (gear icon) > App environment.
- Set the following values under App configuration:
| Field | Example | Meaning |
|---|---|---|
MAIL_MAILER | smtp | Send via SMTP. With the default log setting, Snipe-IT only writes emails to the log |
MAIL_HOST | smtp.example.com | Your email provider’s SMTP server |
MAIL_PORT | 587 | Port; the default is 587 |
MAIL_USERNAME | inventory@example.com | Username with your email provider |
MAIL_PASSWORD | Mailbox password | Password with your email provider |
MAIL_FROM_ADDR | inventory@example.com | Sender address, also used as the reply address |
MAIL_FROM_NAME | IT Inventory | Sender name; the default is Snipe-IT |
- 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: 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) andstorage(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.
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.
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 vCPU core | 2 vCPU cores |
| RAM | 768 MB | 2 GB |
| Storage | 3 GB free | 10 GB |
You’ll also need:
- SSH access; see VPS: First Access via SSH,
- Docker with the Compose plugin; see Set Up Docker on a Linux Server,
- a domain pointing to your server’s IP address with an A record, for example
snipeit.example.com.
Snipe-IT itself only listens on the server. Only SSH, HTTP, and HTTPS need to be open to the outside:
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.
Create a directory and generate an app key and two database passwords:
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:
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:
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.4sets the version. To update, you only need to change this line.127.0.0.1:8000:80makes Snipe-IT available only on the server itself; external access goes through nginx.APP_URLmust exactly match the address you use to access Snipe-IT. Snipe-IT rejects requests to other addresses with “Bad Request.”APP_TRUSTED_PROXIEStells Snipe-IT to trust requests from nginx or the Docker network, so it can recognize HTTPS behind the reverse proxy.- The
storagevolume contains Snipe-IT uploads, images, keys, and backups;db-datacontains the database.
Start Snipe-IT:
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.
Install nginx and Certbot, then create /etc/nginx/sites-available/snipe-it:
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;
}
}
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.
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.
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.
- Visit
https://snipeit.example.com. The wizard first checks the environment, verifies the database tables, and then asks you to create the admin account. - Enter the website name, your name, email address, username, and a secure password, then save.
- Then remove the
allow DEINE_IP;anddeny all;lines from the nginx block and reload nginx:sudo systemctl reload nginx.
Regularly back up the database and the storage volume:
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.
- Back up the database and volume as described above.
- Enter the new version in
docker-compose.yml, for examplesnipe/snipe-it:v8.8.5. See the Snipe-IT releases for available versions. - Download the image and restart:
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.
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).
- 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.”
- Categories: Under “Categories,” add categories such as laptops, monitors, smartphones, and licenses.
- 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.
- Locations and departments: Under “Locations” and “Departments.” These help with filtering and inventory counts.
- 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.
- 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.
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.
