How to Install Snipe-IT on Your Synology NAS

How to Install Snipe-IT on Your Synology NAS

Snipe-IT is a free, open source IT asset management system written in PHP. Snipe-IT was made for IT asset management, to enable IT departments to track who has which laptop, when it was purchased, which software licenses and accessories are available, and so on. In this step by step guide I will show you how to install Snipe-IT on your Synology NAS using Docker and Portainer.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 3

Go to File Station and open the docker folder. Inside the docker folder, create two new folders and name one snipeit and one mariadb. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

SNIPE-IT Synology NAS Set up 1

  • STEP 4

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

SNIPE-IT Synology NAS Set up 2

  • STEP 5

In the Name field type in snipeit. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: "3"
services:
  mysql:
    image: linuxserver/mariadb
    container_name: snipe_mysql
    restart: always
    volumes:
      - /volume1/docker/mariadb:/config
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Europe/Bucharest
      - MYSQL_ROOT_PASSWORD=snipe
      - MYSQL_USER=snipe
      - MYSQL_PASSWORD=snipe
      - MYSQL_DATABASE=snipe
  snipeit:
    image: linuxserver/snipe-it:latest
    container_name: snipe-it
    restart: always
    depends_on:
      - mysql
    volumes:
      - /volume1/docker/snipeit:/config
    environment:
      - NGINX_APP_URL=192.168.1.135:1339
      - MYSQL_PORT_3306_TCP_ADDR=mysql
      - MYSQL_PORT_3306_TCP_PORT=3306
      - MYSQL_DATABASE=snipe
      - MYSQL_USER=snipe
      - MYSQL_PASSWORD=snipe
      - PGID=1026
      - PUID=100
    ports:
      - "1339:80"

Note: After you paste the code in the Web editor, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: After you paste the code in the Web editor, change the value for TZ. (Select your current Time Zone from this list.)
Note: After you paste the code in the Web editor, change the value for NGINX_APP_URL with your NAS local IP followed by :1339
Note
: 192.168.1.135 is my own NAS local IP; you have to use your NAS local IP.

SNIPE-IT Synology NAS Set up 3

  • STEP 6

Scroll down on the page until you see a button called Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

SNIPE-IT Synology NAS Set up 4

  • STEP 7

If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.

SNIPE-IT Synology NAS Set up 5

  • STEP 8

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 9

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:1339 You will be prompted to configure Snipe-IT. Click Create Database Tables. Follow the instructions in the image below.

SNIPE-IT Synology NAS Set up 6

  • STEP 10

Click Create User. Follow the instructions in the image below.

SNIPE-IT Synology NAS Set up 7

  • STEP 11

Create the new user using your own credentials then click Save User. Follow the instructions in the image below.

SNIPE-IT Synology NAS Set up 8

Enjoy Snipe-IT!

SNIPE-IT Synology NAS Set up 9

  • STEP 12

If you want to run the Snipe-IT container over HTTPS, check out my guide on How to Run Docker Containers Over HTTPS.

SNIPE-IT Synology NAS Set up 10

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update the Snipe-IT container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.

This post was updated on Sunday / January 16th, 2022 at 12:23 PM