docker-bits/lsio/snipe-it/docker-run.sh

22 lines
1.1 KiB
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Snipe-it](https://github.com/snipe/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.
2021-04-10 10:16:29 +00:00
2023-04-26 00:53:18 +00:00
. ./.env
2021-04-10 10:16:29 +00:00
docker run -d \
--name=snipe-it \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2023-02-26 14:51:38 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
2022-03-05 00:44:53 +00:00
-e APP_URL=http://localhost:8080 `# Hostname or IP and port if applicable, be sure to define https/http` \
2022-12-31 00:53:17 +00:00
-e MYSQL_PORT_3306_TCP_ADDR= `# Mysql hostname or IP to use` \
-e MYSQL_PORT_3306_TCP_PORT= `# Mysql port to use` \
-e MYSQL_DATABASE= `# Mysql database to use` \
-e MYSQL_USER= `# Mysql user to use` \
-e MYSQL_PASSWORD= `# Mysql password to use` \
2021-04-10 10:16:29 +00:00
-p 8080:80 `# Snipe-IT Web UI` \
-v ${BASEDIR:-/volume1/docker}/snipe-it/config:/config `# Contains your config files and data storage for Snipe-IT` \
--restart unless-stopped \
ghcr.io/linuxserver/snipe-it