From 058160765a2618fabfcd253e1c222d8676e87c9c Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Fri, 5 Oct 2018 23:56:23 -0400 Subject: [PATCH] Created without sidekicks to determine if Traefik has a bug --- .../InvoiceNinja-NoSidekicks/0/README.md | 23 ++++ .../0/Resources/nginx.conf | 50 +++++++++ .../0/docker-compose.yml | 101 ++++++++++++++++++ .../0/rancher-compose.yml | 45 ++++++++ .../catalogIcon-invoiceninja.svg | 1 + templates/InvoiceNinja-NoSidekicks/config.yml | 8 ++ 6 files changed, 228 insertions(+) create mode 100644 templates/InvoiceNinja-NoSidekicks/0/README.md create mode 100644 templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf create mode 100644 templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml create mode 100644 templates/InvoiceNinja-NoSidekicks/0/rancher-compose.yml create mode 100644 templates/InvoiceNinja-NoSidekicks/catalogIcon-invoiceninja.svg create mode 100644 templates/InvoiceNinja-NoSidekicks/config.yml diff --git a/templates/InvoiceNinja-NoSidekicks/0/README.md b/templates/InvoiceNinja-NoSidekicks/0/README.md new file mode 100644 index 0000000..eed9185 --- /dev/null +++ b/templates/InvoiceNinja-NoSidekicks/0/README.md @@ -0,0 +1,23 @@ +# Invoice Ninja + +[Hosted Official Website](https://www.invoiceninja.com/) + +[Self-Hosted Official Website](https://www.invoiceninja.org/) + +[Docker Page](https://hub.docker.com/r/invoiceninja/invoiceninja/) + +## From Website + +Free Open-Source Invoicing +Expenses & time-tracking built with Laravel + +### Pre-Installation: + +Make sure that you have a "nginx.conf" file for the nginx container. +Copying the default one located [on their GitHub](https://github.com/invoiceninja/dockerfiles/blob/master/docker-compose/nginx.conf) should be sufficient. + +You may need to "chmod -R 777 storage" in the "App" container. + +Google Maps: +Get an API Key [Here](https://developers.google.com/maps/documentation/javascript/get-api-key) first. +Then add GOOGLE_MAPS_API_KEY= in your .env file. \ No newline at end of file diff --git a/templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf b/templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf new file mode 100644 index 0000000..5cb3ba6 --- /dev/null +++ b/templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf @@ -0,0 +1,50 @@ +user www-data; + +events { + worker_connections 768; +} + +http { + upstream backend { + server app:9000; + } + include /etc/nginx/mime.types; + default_type application/octet-stream; + gzip on; + gzip_disable "msie6"; + + server { + listen 80 default; + server_name your_ininja_site; + + root /var/www/app/public; + + index index.php; + + charset utf-8; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + sendfile off; + + location ~ \.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass backend; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_intercept_errors off; + fastcgi_buffer_size 16k; + fastcgi_buffers 4 16k; + } + + location ~ /\.ht { + deny all; + } + } +} diff --git a/templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml b/templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml new file mode 100644 index 0000000..e31a729 --- /dev/null +++ b/templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml @@ -0,0 +1,101 @@ +version: '2' +services: + app: + image: invoiceninja/invoiceninja:latest + dns: + - 1.1.1.1 + - 1.0.0.1 + labels: + io.rancher.container.pull_image: always + {{- if (.Values.HOST_LABEL)}} + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} + {{- end}} + links: + - mysql + restart: on-failure + volumes: + - /RancherCattleConfig/${DATA_DIR}/.env:/var/www/app/.env + - /RancherCattleData/${DATA_DIR}/Logo:/var/www/app/public/logo + - /RancherCattleData/${DATA_DIR}/Storage:/var/www/app/storage + cron: + image: invoiceninja/invoiceninja:latest + dns: + - 1.1.1.1 + - 1.0.0.1 + entrypoint: | + bash -c 'bash -s <catalogIcon-invoiceninjaW \ No newline at end of file diff --git a/templates/InvoiceNinja-NoSidekicks/config.yml b/templates/InvoiceNinja-NoSidekicks/config.yml new file mode 100644 index 0000000..88fec83 --- /dev/null +++ b/templates/InvoiceNinja-NoSidekicks/config.yml @@ -0,0 +1,8 @@ +name: Invoice Ninja (No Sidekicks) +description: | + Status: Functional +version: latest +category: Invoicing +maintainer: WilliamMiceli +# license: +projectURL: https://hub.docker.com/r/invoiceninja/invoiceninja/ \ No newline at end of file