Snipe-it - Open Source Asset Management

Ask community developers’ help for your most wanted Apps and also discover what the hottest and ultimate Apps are.
Post Reply
jchan
Getting the hang of things
Posts: 77
Joined: Fri Feb 19, 2010 1:58 am
Location: Stockholm, Sweden

Snipe-it - Open Source Asset Management

Post by jchan » Tue Sep 11, 2018 4:08 pm

Hello!

This would be a nice modern looking addition to run on QNAP:

https://snipeitapp.com

I dont have the skill to install it manually and i'm not sure it's even possible?



Johan

yanuk
Know my way around
Posts: 115
Joined: Mon Feb 08, 2016 9:45 am

Re: Snipe-it - Open Source Asset Management

Post by yanuk » Thu Oct 24, 2019 5:53 pm

Yes it is possible. Mostly lifted from https://snipe-it.readme.io/docs/docker
You will need to have some terminal familiarity
SSH into your NAS

create a folder for you to work from eg: /share/Web/snipe

Code: Select all

cd /share/Web
mkdir snipe
cd snipe

Code: Select all

docker pull snipe/snipe-it

Code: Select all

vim docker-compose.yml
press i to edit the file, paste the whole chunk of code in
press esc, followed by :wq <enter>

Code: Select all

version: '3'

services:

  snipe-mysql:
    container_name: snipe-mysql
    image: mysql:5.6
    env_file:
      - ./.env
    volumes:
      - snipesql-vol:/var/lib/mysql
    command: --default-authentication-plugin=mysql_native_password
    expose:
      - "3306"

  snipe-it:
    image: snipe/snipe-it
    env_file:
      - ./.env
    ports:
      - "3051:80"
    depends_on:
      - snipe-mysql

volumes:
  snipesql-vol:
if you haven't already quit vim, press esc, then type :wq <enter>

now to set sql params

Code: Select all

vim .env
press i
paste the chunk below inside, change the passwords for YOUR_SUPER_SECRET_PASSWORD and YOUR_snipeit_USER_PASSWORD to whatever you want.
change your mail config if you want.

Code: Select all

# Mysql Parameters
MYSQL_PORT_3306_TCP_ADDR=snipe-mysql
MYSQL_ROOT_PASSWORD=YOUR_SUPER_SECRET_PASSWORD
MYSQL_DATABASE=snipeit
MYSQL_USER=snipeit
MYSQL_PASSWORD=YOUR_snipeit_USER_PASSWORD

# Email Parameters
# - the hostname/IP address of your mailserver
MAIL_PORT_587_TCP_ADDR=smtp.whatever.com
#the port for the mailserver (probably 587, could be another)
MAIL_PORT_587_TCP_PORT=587
# the default from address, and from name for emails
MAIL_ENV_FROM_ADDR=youremail@yourdomain.com
MAIL_ENV_FROM_NAME=Your Full Email Name
# - pick 'tls' for SMTP-over-SSL, 'tcp' for unencrypted
MAIL_ENV_ENCRYPTION=tcp
# SMTP username and password
MAIL_ENV_USERNAME=your_email_username
MAIL_ENV_PASSWORD=your_email_password

# Snipe-IT Settings
APP_ENV=production
APP_DEBUG=false
APP_KEY=<<Fill in Later!>>
APP_URL=http://127.0.0.1:80
APP_TIMEZONE=US/Pacific
APP_LOCALE=en 
press esc, then :wq <enter>

you should see at least 2 files now if you run

Code: Select all

ls -a
.env and docker-compose.yml

run

Code: Select all

docker-compose up
wait for magic to happen if there are no errors. after sometime, the terminal will appear to have stopped responding. the last line show be something like" No scheduled commands are ready to run."
Close the terminal window.

Open your browser window in a new tab navigate to your NAS ip with port 3051 : eg; http://192.168.1.178:3051
snipe-it is ready for config, the databaser creation takes a bit of time. just be patient
TS451
TS453

garet
New here
Posts: 2
Joined: Sun Apr 17, 2011 8:36 pm

Re: Snipe-it - Open Source Asset Management

Post by garet » Tue Jan 28, 2020 2:32 am

Hello,
after container installation the web page opens but it give me this message: "Whoops, looks like something went wrong.".
Any advice?
Thanks,

Garet

garet
New here
Posts: 2
Joined: Sun Apr 17, 2011 8:36 pm

Re: Snipe-it - Open Source Asset Management

Post by garet » Tue Jan 28, 2020 8:03 pm

Log error:
"The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."

Post Reply

Return to “Apps Wanted”