Created without sidekicks to determine if Traefik has a bug
This commit is contained in:
23
templates/InvoiceNinja-NoSidekicks/0/README.md
Normal file
23
templates/InvoiceNinja-NoSidekicks/0/README.md
Normal file
@@ -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=<your key> in your .env file.
|
||||||
50
templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf
Normal file
50
templates/InvoiceNinja-NoSidekicks/0/Resources/nginx.conf
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
101
templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml
Normal file
101
templates/InvoiceNinja-NoSidekicks/0/docker-compose.yml
Normal file
@@ -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 <<EOF
|
||||||
|
trap "break;exit" SIGHUP SIGINT SIGTERM
|
||||||
|
sleep 300s
|
||||||
|
while /bin/true; do
|
||||||
|
./artisan ninja:send-invoices
|
||||||
|
./artisan ninja:send-reminders
|
||||||
|
sleep 1h
|
||||||
|
done
|
||||||
|
EOF'
|
||||||
|
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
|
||||||
|
mysql:
|
||||||
|
image: mysql:5
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
|
- 1.0.0.1
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: ninja_db
|
||||||
|
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
||||||
|
MYSQL_USER: ninja
|
||||||
|
MYSQL_PASSWORD: ${DB_USER_PASS}
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
|
{{- if .Values.HOST_LABEL}}
|
||||||
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
|
{{- end}}
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
||||||
|
web:
|
||||||
|
image: nginx
|
||||||
|
command: [nginx-debug, '-g', 'daemon off;']
|
||||||
|
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}}
|
||||||
|
{{- if .Values.TRAEFIK_HOST}}
|
||||||
|
traefik.enable: true
|
||||||
|
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
|
traefik.port: "80"
|
||||||
|
traefik.frontend.entryPoints: http,https
|
||||||
|
traefik.frontend.headers.SSLRedirect: true
|
||||||
|
traefik.frontend.passHostHeader: true
|
||||||
|
{{- else}}
|
||||||
|
traefik.enable: false
|
||||||
|
{{- end}}
|
||||||
|
links:
|
||||||
|
- app
|
||||||
|
networks:
|
||||||
|
- public-proxy
|
||||||
|
ports:
|
||||||
|
- "${WEB_PORT}:80"
|
||||||
|
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
|
||||||
|
- /RancherCattleConfig/${DATA_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
|
||||||
|
networks:
|
||||||
|
public-proxy:
|
||||||
|
external: true
|
||||||
45
templates/InvoiceNinja-NoSidekicks/0/rancher-compose.yml
Normal file
45
templates/InvoiceNinja-NoSidekicks/0/rancher-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
version: '2'
|
||||||
|
catalog:
|
||||||
|
name: InvoiceNinja
|
||||||
|
version: latest
|
||||||
|
# description:
|
||||||
|
# minimum_rancher_version:
|
||||||
|
# maximum_rancher_version:
|
||||||
|
# upgrade_from:
|
||||||
|
questions:
|
||||||
|
|
||||||
|
- variable: "HOST_LABEL"
|
||||||
|
label: "Host Label Key/Value Pair"
|
||||||
|
description: |
|
||||||
|
The Label Key/Value pair on the host which InvoiceNinja should be deployed
|
||||||
|
default: "host.id=Host1"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "TRAEFIK_HOST"
|
||||||
|
label: "Public Host Domain"
|
||||||
|
description: |
|
||||||
|
The host that Traefik will use to provide public access.
|
||||||
|
Leaving this empty will disable Traefik on this stack.
|
||||||
|
default: "subdomain.domain.tld"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "WEB_PORT"
|
||||||
|
label: "Local Web Port"
|
||||||
|
description: |
|
||||||
|
The port to access the web interface on local networks.
|
||||||
|
default: "10200"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: DATA_DIR
|
||||||
|
label: "Data Directory"
|
||||||
|
description: |
|
||||||
|
The directory to store persistent data for the stack.
|
||||||
|
default: "Personal/InvoiceNinja"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
#services:
|
||||||
|
# app:
|
||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 19 KiB |
8
templates/InvoiceNinja-NoSidekicks/config.yml
Normal file
8
templates/InvoiceNinja-NoSidekicks/config.yml
Normal file
@@ -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/
|
||||||
Reference in New Issue
Block a user