From 216d62a1a2f0d9fb546c8a16be3c7a026dd02675 Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Wed, 10 Jun 2020 09:24:08 -0700 Subject: [PATCH] initial invoice ninja addition --- Template/Stack/invoice-ninja.yml | 35 ++++++++++++++++++++++++ Template/Stack/nextcloud.yml | 6 ++-- Template/template.json | 47 ++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 Template/Stack/invoice-ninja.yml diff --git a/Template/Stack/invoice-ninja.yml b/Template/Stack/invoice-ninja.yml new file mode 100644 index 0000000..b657334 --- /dev/null +++ b/Template/Stack/invoice-ninja.yml @@ -0,0 +1,35 @@ +--- +version: "2" +services: + invoice-ninja: + image: invoiceninja/invoiceninja:alpine-4 + container_name: invoice-ninja + environment: + - APP_URL=${URL} + - APP_KEY=${APP_KEY} + - MULTI_DB_ENABLED=false + - DB_TYPE=mysql + - DB_HOST1=ninja_db + - DB_DATABASE=ninja_db + - DB_USERNAME=invoice_ninja + - DB_PASSWORD=${DATABASE_PASSWORD} + volumes: + - /portainer/Files/AppData/Config/Invoice-Ninja/public:/var/app/public + - /portainer/Files/AppData/Config/Invoice-Ninja/storage:/var/app/storage + ports: + - ${PORT}:80 + restart: unless-stopped + depends_on: + - ninja_db + ninja_db: + image: linuxserver/mariadb + container_name: ninja_db + environment: + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + - TZ=${TZ} + - MYSQL_DATABASE=ninja_db + - MYSQL_USER=invoice_ninja + - MYSQL_PASSWORD=${DATABASE_PASSWORD} + volumes: + - /portainer/Files/AppData/Config/Invoice-Ninja/DB:/config + restart: unless-stopped diff --git a/Template/Stack/nextcloud.yml b/Template/Stack/nextcloud.yml index c724ddc..233e141 100644 --- a/Template/Stack/nextcloud.yml +++ b/Template/Stack/nextcloud.yml @@ -1,7 +1,7 @@ --- version: "2" services: - bookstack: + nextcloud: image: linuxserver/nextcloud container_name: nextcloud environment: @@ -9,7 +9,7 @@ services: - PGID=${PGID} - TZ=${TZ} volumes: - - /srv/dev-disk-by-label-media/Files/AppData/Config/Nextcloud/Config:/config + - /portainer/Files/AppData/Config/Nextcloud/Config:/config ports: - ${PORT}:443 restart: unless-stopped @@ -27,5 +27,5 @@ services: - MYSQL_USER=nextcloud - MYSQL_PASSWORD=${DATABASE_PASSWORD} volumes: - - /srv/dev-disk-by-label-media/Files/AppData/Config/Nextcloud/DB:/config + - /portainer/AppData/Config/Nextcloud/DB:/config restart: unless-stopped diff --git a/Template/template.json b/Template/template.json index f91369d..736e498 100644 --- a/Template/template.json +++ b/Template/template.json @@ -1266,6 +1266,53 @@ } ] }, + { + "type": 3, + "title": "Invoice Ninja", + "name": "invoice_ninja", + "description": "Invoices, Expenses and Tasks built with Laravel and Flutter.", + "logo": "https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/master/Images/invoice_ninja.png", + "categories": [ + "Cloud", + "Productivity", + "Tools", + "Other", + "Web" + ], + "note": "The database user is invoice_ninja and the database is ninja_db. Please generate an app key following the documentation here. ", + "platform": "linux", + "repository": { + "url": "https://github.com/SelfhostedPro/selfhosted_templates", + "stackfile": "Template/Stack/invoice-ninja.yml" + }, + "env": [ + { + "name": "URL", + "label": "URL", + "default": "invoice.my.domain" + }, + { + "name": "APP_KEY", + "label": "APP_KEY" + }, + { + "name": "TZ", + "label": "TZ" + }, + { + "name": "DATABASE_PASSWORD", + "label": "DATABASE_PASSWORD" + }, + { + "name": "MYSQL_ROOT_PASSWORD", + "label": "MYSQL_ROOT_PASSWORD" + }, + { + "name": "PORT", + "label": "PORT" + } + ] + }, { "type": 1, "title": "Jackett",