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.
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.
Go to File Station and open the docker folder. Inside the docker folder, create two new folders and name one snipeit and one snipeitdb. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
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.
In the Name field type in snipeit. Follow the instructions in the image below.
version: "3" services: mysql: image: linuxserver/mariadb container_name: snipe_mysql_db restart: always volumes: - /volume1/docker/snipeitdb:/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: - APP_URL=http://192.168.1.18:1339 - NGINX_APP_URL=192.168.1.18: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 APP_URL with your NAS local IP followed by :1339
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.18 is my own NAS local IP; you have to use your NAS local IP.
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.
If everything goes right, you will see this message at the top right of your screen: “Success Stack successfully deployed“.
Go back to STEP 1 or you will deal with karma 🙂.
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.
Click general_setup_migrations_create_user to Create User. Follow the instructions in the image below.
Create the new user using your own credentials then click Save User. Follow the instructions in the image below.
If you want to run the Snipe-IT container over HTTPS, check out my guide on How to Run Docker Containers Over HTTPS.
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.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
This post was updated on Friday / November 4th, 2022 at 2:07 AM