Updated to current setup template
This commit is contained in:
@@ -9,9 +9,9 @@ services:
|
|||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
environment:
|
environment:
|
||||||
APP_ENV: production
|
# APP_ENV: production
|
||||||
APP_DEBUG: true
|
APP_DEBUG: true
|
||||||
APP_URL: ${URL}:${HOST_HTTP_PORT}
|
APP_URL: ${URL}:${WEB_PORT}
|
||||||
APP_KEY: ${APP_KEY}
|
APP_KEY: ${APP_KEY}
|
||||||
MYSQL_HOST: mysql
|
MYSQL_HOST: mysql
|
||||||
MYSQL_DATABASE: snipeit
|
MYSQL_DATABASE: snipeit
|
||||||
@@ -20,18 +20,16 @@ services:
|
|||||||
APP_ENV:
|
APP_ENV:
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.pull_image: always
|
io.rancher.container.pull_image: always
|
||||||
{{- if (.Values.HOST_LABEL)}}
|
{{- if .Values.HOST_LABEL}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
networks:
|
links:
|
||||||
- default
|
- mysql
|
||||||
- snipe-net
|
|
||||||
ports:
|
ports:
|
||||||
- "${HOST_HTTP_PORT}:80"
|
- "${WEB_PORT}:80"
|
||||||
- "${HOST_HTTPS_PORT}:443"
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_BASE_DIR}${APP_DIR}:/var/lib/snipeit
|
- /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5
|
image: mysql:5
|
||||||
dns:
|
dns:
|
||||||
@@ -47,11 +45,6 @@ services:
|
|||||||
{{- if (.Values.HOST_LABEL)}}
|
{{- if (.Values.HOST_LABEL)}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
networks:
|
|
||||||
- snipe-net
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
||||||
|
|
||||||
networks:
|
|
||||||
snipe-net:
|
|
||||||
@@ -11,7 +11,7 @@ catalog:
|
|||||||
- variable: "HOST_LABEL"
|
- variable: "HOST_LABEL"
|
||||||
label: "Host Label Key/Value Pair"
|
label: "Host Label Key/Value Pair"
|
||||||
description: |
|
description: |
|
||||||
The Label Key/Value pair on the host which InvoiceNinja should be deployed
|
The Label Key/Value pair on the host which containers should be deployed
|
||||||
default: "host.id=Host1"
|
default: "host.id=Host1"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -24,43 +24,19 @@ catalog:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
- variable: "HOST_HTTP_PORT"
|
- variable: "WEB_PORT"
|
||||||
label: "Host HTTP Port"
|
label: "Local Web Port"
|
||||||
description: |
|
description: |
|
||||||
The HTTP port to access the web interface on.
|
The port to locally access the web interface on.
|
||||||
default: "12000"
|
default: "10300"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
- variable: "HOST_HTTPS_PORT"
|
- variable: "DATA_DIR"
|
||||||
label: "Host HTTPS Port"
|
label: "Data Directory"
|
||||||
description: |
|
description: |
|
||||||
The HTTPS port to access the web interface on.
|
The directory to store persistent data for the stack.
|
||||||
default: "12500"
|
default: "Personal/Snipe-IT"
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
- variable: "STORAGE_BASE_DIR"
|
|
||||||
label: "Base Storage Directory"
|
|
||||||
description: |
|
|
||||||
The base path of where persistent storage should be kept at.
|
|
||||||
default: "/RancherStorage/SnipeIT"
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
- variable: "APP_DIR"
|
|
||||||
label: "Application Directory"
|
|
||||||
description: |
|
|
||||||
The folder for persistent application files.
|
|
||||||
default: "/Application"
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
- variable: "DB_DIR"
|
|
||||||
label: "Database Directory"
|
|
||||||
description: |
|
|
||||||
The folder for persistent database files.
|
|
||||||
default: "/Database"
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -68,6 +44,7 @@ catalog:
|
|||||||
label: "MySQL Root Password"
|
label: "MySQL Root Password"
|
||||||
description: |
|
description: |
|
||||||
A secure password to be used by the "root" MySQL user.
|
A secure password to be used by the "root" MySQL user.
|
||||||
|
# default:
|
||||||
required: true
|
required: true
|
||||||
type: password
|
type: password
|
||||||
|
|
||||||
@@ -75,6 +52,7 @@ catalog:
|
|||||||
label: "MySQL User Password"
|
label: "MySQL User Password"
|
||||||
description: |
|
description: |
|
||||||
A secure password to be used by the "snipe_user" MySQL user.
|
A secure password to be used by the "snipe_user" MySQL user.
|
||||||
|
# default:
|
||||||
required: true
|
required: true
|
||||||
type: password
|
type: password
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user