diff --git a/templates/Snipe-IT/0/docker-compose.yml b/templates/Snipe-IT/0/docker-compose.yml index 2e1f30b..f966a30 100644 --- a/templates/Snipe-IT/0/docker-compose.yml +++ b/templates/Snipe-IT/0/docker-compose.yml @@ -9,8 +9,8 @@ services: - 2606:4700:4700::1111 - 2606:4700:4700::1001 environment: - APP_ENV: production # [ development | production ] - APP_DEBUG: false + APP_ENV: ${ENVIRONMENT} # [ development | production ] + APP_DEBUG: ${DEBUG} APP_URL: https://${TRAEFIK_HOST} # No port number needed APP_KEY: ${APP_KEY} MYSQL_HOST: mysql diff --git a/templates/Snipe-IT/0/rancher-compose.yml b/templates/Snipe-IT/0/rancher-compose.yml index 271b60d..6c672de 100644 --- a/templates/Snipe-IT/0/rancher-compose.yml +++ b/templates/Snipe-IT/0/rancher-compose.yml @@ -24,13 +24,22 @@ catalog: required: true type: string - - variable: "DATA_DIR" - label: "Data Directory" - description: | - The directory to store persistent data for the stack. - default: "Personal/Snipe-IT" + - variable: "ENVIRONMENT" + label: "Environment" + # description: + default: production required: true - type: string + type: enum + options: + - production + - development + + - variable: "DEBUG" + label: "Debug Mode" + # description: + default: false + required: true + type: boolean - variable: "DB_ROOT_PASS" label: "Database Root Password" @@ -53,4 +62,12 @@ catalog: description: | See README. required: true - type: password \ No newline at end of file + type: password + + - variable: "DATA_DIR" + label: "Data Directory" + description: | + The directory to store persistent data for the stack. + default: "Personal/Snipe-IT" + required: true + type: string \ No newline at end of file