No more volumes; updates
This commit is contained in:
@@ -5,14 +5,14 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
io.rancher.sidekicks: cron, web
|
io.rancher.sidekicks: cron, web
|
||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_LOGO}:/var/www/app/public/logo:nocopy
|
- ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo
|
||||||
- ${VOLUME_STORAGE}:/var/www/app/storage:nocopy
|
- ${STORAGE_BASE_DIR}${STORAGE_DIR}:/var/www/app/storage
|
||||||
cron:
|
cron:
|
||||||
image: invoiceninja/invoiceninja
|
image: invoiceninja/invoiceninja
|
||||||
entrypoint: |
|
entrypoint: |
|
||||||
@@ -26,35 +26,32 @@ services:
|
|||||||
done
|
done
|
||||||
EOF'
|
EOF'
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
db:
|
db:
|
||||||
image: mysql
|
image: mysql:5
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=test123456
|
|
||||||
- MYSQL_DATABASE=ninja
|
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_DB}:/var/lib/mysql:nocopy
|
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "${WEB_PORT}:80"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_WEB}:/etc/nginx:nocopy
|
- ${STORAGE_BASE_DIR}${WEB_DIR}:/etc/nginx
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
environment:
|
environment:
|
||||||
@@ -66,8 +63,9 @@ environment:
|
|||||||
- DB_HOST='db'
|
- DB_HOST='db'
|
||||||
- DB_STRICT='false'
|
- DB_STRICT='false'
|
||||||
- DB_TYPE='mysql'
|
- DB_TYPE='mysql'
|
||||||
- DB_USERNAME='root'
|
- DB_USERNAME='ninja'
|
||||||
- DB_PASSWORD='test123456'
|
- DB_PASSWORD='ninja'
|
||||||
|
- MYSQL_ROOT_PASSWORD='ninja'
|
||||||
|
- MYSQL_DATABASE='ninja'
|
||||||
networks:
|
networks:
|
||||||
ninja-net:
|
ninja-net:
|
||||||
volumes_driver: rancher-nfs
|
|
||||||
@@ -4,67 +4,53 @@ catalog:
|
|||||||
version: "latest"
|
version: "latest"
|
||||||
description: Invoicing
|
description: Invoicing
|
||||||
questions:
|
questions:
|
||||||
- variable: "HOST_LABEL_KEY"
|
- variable: "LABEL_KEY_VALUE"
|
||||||
label: "Host Label Key"
|
label: "Host Label Key/Value Pair"
|
||||||
description: |
|
description: |
|
||||||
The Label Key on the host which InvoiceNinja should be deployed
|
The Label Key/Value pair on the host which Eclipse Che should be deployed
|
||||||
default: "host.id"
|
default: "host.id=0000"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "HOST_LABEL_VALUE"
|
- variable: "WEB_PORT"
|
||||||
label: "Host Label Value"
|
label: "Port Number"
|
||||||
description: |
|
description: |
|
||||||
The Label Value on the host which InvoiceNinja should be deployed
|
Port to access the web interface on
|
||||||
default: "0000"
|
default: "8000"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_LOGO"
|
- variable: "STORAGE_BASE_DIR"
|
||||||
label: "Persistent Logo Volume"
|
label: "Base Storage Directory"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The base path of where persistent storage should be kept at.
|
||||||
default: "InvoiceNinja-Logo"
|
default: "/RancherNetworkStorage/ContainerStorage/InvoiceNinja"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_STORAGE"
|
- variable: "LOGO_DIR"
|
||||||
label: "Persistent Storage Volume"
|
label: "Logo Directory"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The
|
||||||
default: "InvoiceNinja-Storage"
|
default: "/Logo"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_DB"
|
- variable: "STORAGE_DIR"
|
||||||
label: "Persistent Data Volume"
|
label: "Storage Directory"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The
|
||||||
default: "InvoiceNinja-DB"
|
default: "/Storage"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_WEB"
|
- variable: "DB_DIR"
|
||||||
label: "Persistent Web Server Storage Volume"
|
label: "Database Directory"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The
|
||||||
default: "InvoiceNinja-Web"
|
default: "/Database"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "DB_DATABASE"
|
- variable: "WEB_DIR"
|
||||||
label: "Name of the database"
|
label: "Web Server Data Directory"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The
|
||||||
default: "ninja"
|
default: "/Web"
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- variable: "DB_USERNAME"
|
|
||||||
label: "Username for the database"
|
|
||||||
description: |
|
|
||||||
The volume name that should be used for persistent storage
|
|
||||||
default: "ninja"
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
- variable: "DB_PASSWORD"
|
|
||||||
label: "Password for the database user"
|
|
||||||
description: |
|
|
||||||
The volume name that should be used for persistent storage
|
|
||||||
default: "ninja"
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "APP_URL"
|
- variable: "APP_URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user