Self-host Snipe-IT with Docker
IT asset management for tracking hardware, licenses, and accessories, and who currently has what.
This page describes the Levelrail template for Snipe-IT (Infrastructure). It deploys the services below as one Docker Compose app on your own server.
Project site: https://snipe-it.readme.io/docs/docker.Recommended memory: about 512 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
db | mariadb:11 | none | snipeit_db_data -> /var/lib/mysql |
snipeit | snipe/snipe-it:v7.1.16 | 80 | snipeit_data -> /var/lib/snipeit |
Environment variables
| Service | Variable | Value |
|---|---|---|
db | MYSQL_DATABASE | Preset in the template |
db | MYSQL_PASSWORD | Generated at deploy |
db | MYSQL_RANDOM_ROOT_PASSWORD | Preset in the template |
db | MYSQL_USER | Preset in the template |
snipeit | APP_KEY | Generated at deploy |
snipeit | APP_URL | Preset in the template |
snipeit | MYSQL_DATABASE | Preset in the template |
snipeit | MYSQL_PASSWORD | Generated at deploy |
snipeit | MYSQL_PORT_3306_TCP_ADDR | Preset in the template |
snipeit | MYSQL_PORT_3306_TCP_PORT | Preset in the template |
snipeit | MYSQL_USER | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Snipe-IT with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Snipe-IT. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy snipe-it --name my-snipe-itSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Infrastructure templates
All templates are listed in the self-host gallery.