docker-bits/lsio/snipe-it/docker-run.sh
2022-04-02 00:45:58 +00:00

22 lines
1.1 KiB
Bash

# [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.
source ./.env
docker run -d \
--name=snipe-it \
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
-e APP_URL=http://localhost:8080 `# Hostname or IP and port if applicable, be sure to define https/http` \
-e MYSQL_PORT_3306_TCP_ADDR=<mysql host> `# Mysql hostname or IP to use` \
-e MYSQL_PORT_3306_TCP_PORT=<mysql port> `# Mysql port to use` \
-e MYSQL_DATABASE=<mysql database> `# Mysql database to use` \
-e MYSQL_USER=<mysql pass> `# Mysql user to use` \
-e MYSQL_PASSWORD=changeme `# Mysql password to use` \
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
-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