Quick Snipe-IT (Asset Management) Tool Deployment Steps on Docker Container

 Quick Snipe-IT (Asset Management)  Tool Deployment Steps on Docker Container
Written by Abhishek JalanMay 11, 2020
3 min read
Snipe-IT
30 VIEWS 4 LIKES 0 DISLIKES SHARE
4 LIKES 0 DISLIKES 30 VIEWS SHARE
Abhishek Jalan

DevSecOps Engineer

Snipe-IT is a free and open-source web application for IT assets management that provides a web-based interface. In this blog, I will show you how to deploy the Snipe-IT tool on Docker.

Snipe-IT is a free and open-source web application for IT assets management that provides a web-based interface for tracking licenses, accessories, consumables, and components. ... It is cross-platform and feature-rich web-based software built using a PHP framework called Laravel.

Highlights

  • Free (Libre) open-source software (FLOSS)
  • Developer-friendly with REST-API
  • Frequent updates and bug-fixes
  • Trusted by customers from all over the globe
  • Notification (Email, Slack)
  • Multi-lingual support
  • Admin dashboard to track recent activities
  • Powerful asset management
  • Asset auditing
  • QR code and barcode generator
  • License management
  • History manager
  • Digital signature support
  • Import/ Export assets
  • Asset tracking
  • Asset search

3 Simple Steps for Installing Snipe-IT tool on Docker

Please follow the below steps

Create two directories on your docker host for volume persistence

mkdir /docker-data/snipe-mysql
mkdir /docker-data/snipe-it

Now we will create MySql Docker container

docker run \
--name snipe-mysql \
-d \
-e MYSQL_ROOT_PASSWORD=demo123@ \
-e MYSQL_DATABASE=snipe \
-e MYSQL_USER=snipe \
-e MYSQL_PASSWORD=demo123@ \
-e TZ=Europe/Berlin \
-p 127.0.0.1:3306:3306 \
-v /docker-data/snipe-mysql:/var/lib/mysql \
mysql:5.7.30 --sql-mode=""

Now we will create Snipe-IT docker container

You can change the MYSQL_ROOT_PASSWORD if you want to, as well as the MYSQL_PASSWORD, but just be sure to change them in both the docker containers. Also, make sure your timezone is correct.

docker run \
-d \
--name=snipe-it \
--link snipe-mysql:db \
-e PUID=1000 \
-e PGID=1000 \
-e DB_CONNECTION=mysql \
-e DB_HOST=snipe-mysql \
-e DB_DATABASE=snipe \
-e DB_USERNAME=snipe \
-e DB_PASSWORD=demo123@ \
-e APP_KEY=base64:5U/KPKw1GN/Rz0fWYO/4FsSOqjmjvDAQzMCqwcAqstc= \
-p 8082:80 \
-v /docker-data/snipe-conf:/config \
--restart unless-stopped \
snipe/snipe-it

Verify if both the containers are up and running fine.

docker ps -a

Setup completed. Now you can access the Snipe-IT portal using http://<your-docker-ip>:8082, you can finish the setup.

The quick and best solution to setup Snipe-IT tool

docker
snipe-it
asset-management
centos
30 VIEWS 4 LIKES 0 DISLIKES SHARE
4 LIKES 0 DISLIKES 30 VIEWS SHARE
Was this blog helpful?
You must be Logged in to comment
Code Block

1 Comments

Maria Gilbert

Nice Blog.

Abhishek Jalan
DevSecOps Engineer
+21 more
17 Blog Posts
4 Discussion Threads
Trending Categories
93
Software12
DevOps34
Frontend Development13
Backend Development13
Server Administration13
Linux Administration12
Data Center14
Sentry11
Terraform15
Ansible9
Docker13
Penetration Testing12
Kubernetes12
NGINX8
JenkinsX10
Jenkins18
SSL6
Ethical-Hacking10
Python8
NodeJs9
RedHat8
Github11
AngularJs15
Google Cloud Platform (GCP)6
SonarQube9
Amazon Web Service (AWS)2
VMware17
Blockchain6
Snipe-IT7