Sign inSign up

lspipelive/snipe-it

By lspipelive

•Updated about 8 years ago

Image
0

1.8K

lspipelive/snipe-it repository overview

linuxserver.io

⁠Contact information:-

TypeAddress/Details
DiscordDiscord⁠
ForumLinuserver.io forum⁠
IRCfreenode at #linuxserver.io more information at:- IRC⁠
PodcastCovers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation! Linuxserver.io Podcast⁠

The LinuxServer.io⁠ team brings you another image release featuring :-

  • regular and timely application updates
  • easy user mappings
  • custom base image with s6 overlay
  • security updates

⁠linuxserver/snipe-it⁠

Docker PullsDocker StarsBuild Status

Snipe-IT makes asset management easy. It was built by people solving real-world IT and asset management problems, and a solid UX has always been a top priority. Straightforward design and bulk actions mean getting things done faster.

snipe-it

 

⁠Usage

docker create \
  --name=snipe-it \
  -v <path to data>:/config \
  -e APP_URL=<hostname or ip> \
  -e MYSQL_PORT_3306_TCP_ADDR=<mysql host> \
  -e MYSQL_DATABASE=<mysql database> \
  -e MYSQL_USER=<mysql user> \
  -e MYSQL_PASSWORD=<mysql pass> \
  -e PGID=<gid> -e PUID=<uid>  \
  -p 8080:80 \
  linuxserver/snipe-it

 

⁠Required Parameters

The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side. For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container. So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 http://192.168.x.x:8080⁠ would show you what's running INSIDE the container on port 80.

ParameterFunction
-p 8080the port(s)
-v /configContains your config files and data storage for Snipe-IT
-e APP_URL=Hostname or IP and port if applicable IE 192.168.10.1:8080
-e MYSQL_PORT_3306_TCP_ADDR=Mysql hostname or IP to use
-e MYSQL_DATABASE=Mysql database to use
-e MYSQL_USER=Mysql user to use
-e MYSQL_PASSWORD=Mysql password to use
-e PGIDfor GroupID, see below for explanation
-e PUIDfor UserID, see below for explanation

 

⁠Optional Parameters

This container also generates an SSL certificate and stores it in

/config/keys/cert.crt
/config/keys/key.crt

To use your own certificate swap these files with yours. To use SSL forward your port to 443 inside the container IE:

-p 443:443

The application accepts a series of environment variables to further customize itself on boot:

ParameterFunction
-e APP_TIMEZONE=The timezone the application will use IE US/Pacific
-e APP_ENV=Default is production but can use testing or develop
-e APP_DEBUG=Set to true to see debugging output in the web UI
-e APP_LOCALE=Default is en set to the language preferred full list here⁠
-e MAIL_PORT_587_TCP_ADDR=SMTP mailserver ip or hostname
-e MAIL_PORT_587_TCP_PORT=SMTP mailserver port
-e MAIL_ENV_FROM_ADDR=The email address mail should be replied to and listed when sent
-e MAIL_ENV_FROM_NAME=The name listed on email sent from the default account on the system
-e MAIL_ENV_ENCRYPTION=Mail encryption to use IE tls
-e MAIL_ENV_USERNAME=SMTP server login username
-e MAIL_ENV_PASSWORD=SMTP server login password

 

⁠User / Group Identifiers

Sometimes when using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and it will "just work" ™.

In this instance PUID=1001 and PGID=1001, to find yours use id user as below:

  $ id <dockeruser>
    uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)

 

⁠Setting up the application

Access the webui at <your-ip>:8080, for more information check out snipe-it⁠.

 

⁠Container access and information.

FunctionCommand
Shell access (live container)docker exec -it snipe-it /bin/bash
Realtime container logsdocker logs -f snipe-it
Container version numberdocker inspect -f '{{ index .Config.Labels "build_version" }}' snipe-it
Image version numberdocker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/snipe-it

 

⁠Versions

DateChanges
13.06.18Initial Release.

Tag summary

Content type

Image

Digest

Size

52 MB

Last updated

about 8 years ago

docker pull lspipelive/snipe-it