diff --git a/templates/invoice-ninja/0/docker-compose.yml b/templates/invoice-ninja/0/docker-compose.yml index d69a467..5ba3a3a 100644 --- a/templates/invoice-ninja/0/docker-compose.yml +++ b/templates/invoice-ninja/0/docker-compose.yml @@ -2,7 +2,18 @@ version: '2' services: invoiceninja: image: invoiceninja/invoiceninja - env_file: .env + environment: + - APP_ENV='production' + - APP_DEBUG=0 + - APP_URL='http://ninja.dev' + -e APP_KEY=${APP_KEY} + -e APP_CIPHER='AES-256-CBC' + -e DB_TYPE='mysql' + -e DB_STRICT='false' + -e DB_HOST='localhost' + -e DB_DATABASE=${DB_DATABASE} + -e DB_USERNAME=${DB_USERNAME} + -e DB_PASSWORD=${DB_PASSWORD} labels: io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} links: @@ -23,14 +34,36 @@ services: sleep 1h done EOF' - env_file: .env + environment: + - APP_ENV='production' + - APP_DEBUG=0 + - APP_URL='http://ninja.dev' + -e APP_KEY=${APP_KEY} + -e APP_CIPHER='AES-256-CBC' + -e DB_TYPE='mysql' + -e DB_STRICT='false' + -e DB_HOST='localhost' + -e DB_DATABASE=${DB_DATABASE} + -e DB_USERNAME=${DB_USERNAME} + -e DB_PASSWORD=${DB_PASSWORD} links: - db:mysql volumes_from: - invoiceninja db: image: mysql - env_file: .env + environment: + - APP_ENV='production' + - APP_DEBUG=0 + - APP_URL='http://ninja.dev' + -e APP_KEY=${APP_KEY} + -e APP_CIPHER='AES-256-CBC' + -e DB_TYPE='mysql' + -e DB_STRICT='false' + -e DB_HOST='localhost' + -e DB_DATABASE=${DB_DATABASE} + -e DB_USERNAME=${DB_USERNAME} + -e DB_PASSWORD=${DB_PASSWORD} restart: always volumes: - ${VOLUME_DATA}:/var/lib/mysql:nocopy diff --git a/templates/invoice-ninja/0/rancher-compose.yml b/templates/invoice-ninja/0/rancher-compose.yml index 35f8bc7..bc2d918 100644 --- a/templates/invoice-ninja/0/rancher-compose.yml +++ b/templates/invoice-ninja/0/rancher-compose.yml @@ -4,27 +4,6 @@ catalog: version: "latest" description: Invoicing questions: - - variable: "VOLUME_LOGO" - label: "Persistent Logo Volume" - description: | - The volume name that should be used for persistent storage - default: "InvoiceNinja-Logo" - required: false - type: string - - variable: "VOLUME_STORAGE" - label: "Persistent Storage Volume" - description: | - The volume name that should be used for persistent storage - default: "InvoiceNinja-Storage" - required: false - type: string - - variable: "VOLUME_DATA" - label: "Persistent Data Volume" - description: | - The volume name that should be used for persistent storage - default: "InvoiceNinja-Data" - required: false - type: string - variable: "HOST_LABEL_KEY" label: "Host Label Key" description: | @@ -39,5 +18,54 @@ catalog: default: "0000" required: true type: string + - variable: "VOLUME_LOGO" + label: "Persistent Logo Volume" + description: | + The volume name that should be used for persistent storage + default: "InvoiceNinja-Logo" + required: true + type: string + - variable: "VOLUME_STORAGE" + label: "Persistent Storage Volume" + description: | + The volume name that should be used for persistent storage + default: "InvoiceNinja-Storage" + required: true + type: string + - variable: "VOLUME_DATA" + label: "Persistent Data Volume" + description: | + The volume name that should be used for persistent storage + default: "InvoiceNinja-Data" + required: true + type: string + - variable: "DB_DATABASE" + label: "Name of the database" + description: | + The volume name that should be used for persistent storage + default: "ninja" + required: true + type: string + - variable: "DB_USERNAME" + label: "Username for the database" + description: | + The volume name that should be used for persistent storage + default: "ninja" + required: true + type: string + - variable: "DB_PASSWORD" + label: "Password for the database user" + description: | + The volume name that should be used for persistent storage + default: "ninja" + required: true + type: string + - variable: "APP_KEY" + label: "Random string" + description: | + A random string + default: "SomeRandomStringSomeRandomString" + required: true + type: string invoiceninja: scale: 1 \ No newline at end of file