Initial trial setup of InvoiceNinja

This commit is contained in:
WilliamMiceli
2018-03-20 19:32:33 -04:00
parent a02e23ae4d
commit d1b2514fa8
3 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1 @@
#Initial Testing

View File

@@ -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

View File

@@ -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