Initial trial setup of InvoiceNinja
This commit is contained in:
1
templates/invoice-ninja/0/README.md
Normal file
1
templates/invoice-ninja/0/README.md
Normal file
@@ -0,0 +1 @@
|
||||
#Initial Testing
|
||||
@@ -0,0 +1,47 @@
|
||||
version: '2'
|
||||
services:
|
||||
invoiceninja:
|
||||
image: invoiceninja/invoiceninja
|
||||
env_file: .env
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||
links:
|
||||
- db:mysql
|
||||
restart: always
|
||||
volumes:
|
||||
- ${VOLUME_LOGO}:/var/www/app/public/logo:nocopy
|
||||
- ${VOLUME_STORAGE}:/var/www/app/storage:nocopy
|
||||
cron:
|
||||
image: invoiceninja/invoiceninja
|
||||
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'
|
||||
env_file: .env
|
||||
links:
|
||||
- db:mysql
|
||||
volumes_from:
|
||||
- invoiceninja
|
||||
db:
|
||||
image: mysql
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
- ${VOLUME_DATA}:/var/lib/mysql:nocopy
|
||||
web:
|
||||
image: nginx
|
||||
links:
|
||||
- invoiceninja
|
||||
ports:
|
||||
- 8000:80
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
volumes_from:
|
||||
- invoiceninja
|
||||
volumes_driver: rancher-nfs
|
||||
@@ -0,0 +1,43 @@
|
||||
version: '2'
|
||||
catalog:
|
||||
name: "InvoiceNinja"
|
||||
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: |
|
||||
The Label Key on the host which InvoiceNinja should be deployed
|
||||
default: "personal.host.id"
|
||||
required: true
|
||||
type: string
|
||||
- variable: "HOST_LABEL_VALUE"
|
||||
label: "Host Label Value"
|
||||
description: |
|
||||
The Label Value on the host which InvoiceNinja should be deployed
|
||||
default: "0000"
|
||||
required: true
|
||||
type: string
|
||||
invoiceninja:
|
||||
scale: 1
|
||||
Reference in New Issue
Block a user