Renamed "snipe" to "snipe-it" as it should be
This commit is contained in:
50
templates/Snipe-IT/0/docker-compose.yml
Normal file
50
templates/Snipe-IT/0/docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
version: '2'
|
||||
services:
|
||||
|
||||
snipe-it:
|
||||
image: snipe/snipe-it:latest
|
||||
depends_on:
|
||||
- mysql
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
environment:
|
||||
# APP_ENV: production
|
||||
APP_DEBUG: true
|
||||
APP_URL: ${URL}:${WEB_PORT}
|
||||
APP_KEY: ${APP_KEY}
|
||||
MYSQL_HOST: mysql
|
||||
MYSQL_DATABASE: snipeit
|
||||
MYSQL_USER: snipe_user
|
||||
MYSQL_PASSWORD: ${DB_USER_PASS}
|
||||
APP_ENV:
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
links:
|
||||
- mysql
|
||||
ports:
|
||||
- "${WEB_PORT}:80"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit
|
||||
mysql:
|
||||
image: mysql:5
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
environment:
|
||||
MYSQL_DATABASE: snipeit
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
||||
MYSQL_USER: snipe_user
|
||||
MYSQL_PASSWORD: ${DB_USER_PASS}
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if (.Values.HOST_LABEL)}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
||||
64
templates/Snipe-IT/0/rancher-compose.yml
Normal file
64
templates/Snipe-IT/0/rancher-compose.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
version: '2'
|
||||
catalog:
|
||||
name: SnipeIT
|
||||
version: latest
|
||||
# description:
|
||||
# minimum_rancher_version:
|
||||
# maximum_rancher_version:
|
||||
# upgrade_from:
|
||||
questions:
|
||||
|
||||
- variable: "HOST_LABEL"
|
||||
label: "Host Label Key/Value Pair"
|
||||
description: |
|
||||
The Label Key/Value pair on the host which containers should be deployed
|
||||
default: "host.id=Host1"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
- variable: "URL"
|
||||
label: "URL"
|
||||
description: |
|
||||
The domain or hostname the service can be accessed at.
|
||||
default: "http://localhost"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
- variable: "WEB_PORT"
|
||||
label: "Local Web Port"
|
||||
description: |
|
||||
The port to locally access the web interface on.
|
||||
default: "10300"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
- variable: "DATA_DIR"
|
||||
label: "Data Directory"
|
||||
description: |
|
||||
The directory to store persistent data for the stack.
|
||||
default: "Personal/Snipe-IT"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
- variable: "DB_ROOT_PASS"
|
||||
label: "MySQL Root Password"
|
||||
description: |
|
||||
A secure password to be used by the "root" MySQL user.
|
||||
# default:
|
||||
required: true
|
||||
type: password
|
||||
|
||||
- variable: "DB_USER_PASS"
|
||||
label: "MySQL User Password"
|
||||
description: |
|
||||
A secure password to be used by the "snipe_user" MySQL user.
|
||||
# default:
|
||||
required: true
|
||||
type: password
|
||||
|
||||
- variable: "APP_KEY"
|
||||
label: "Encryption Key"
|
||||
description: |
|
||||
A random 32-Character string which will be used for encryption.
|
||||
required: true
|
||||
type: password
|
||||
1
templates/Snipe-IT/catalogIcon-snipeit.svg
Normal file
1
templates/Snipe-IT/catalogIcon-snipeit.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 10 KiB |
8
templates/Snipe-IT/config.yml
Normal file
8
templates/Snipe-IT/config.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
name: Snipe-IT
|
||||
description: |
|
||||
Status: NOT READY
|
||||
version: latest
|
||||
category: Asset Management
|
||||
maintainer: WilliamMiceli
|
||||
# license:
|
||||
# projectURL:
|
||||
Reference in New Issue
Block a user