Testing
This commit is contained in:
@@ -6,10 +6,10 @@ services:
|
|||||||
- db
|
- db
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||||
io.rancher.sidekicks: cron, db, web
|
io.rancher.sidekicks: cron
|
||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
restart: always
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_LOGO}:/var/www/app/public/logo:nocopy
|
- ${VOLUME_LOGO}:/var/www/app/public/logo:nocopy
|
||||||
- ${VOLUME_STORAGE}:/var/www/app/storage:nocopy
|
- ${VOLUME_STORAGE}:/var/www/app/storage:nocopy
|
||||||
@@ -29,15 +29,19 @@ services:
|
|||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
|
restart: on-failure
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
db:
|
db:
|
||||||
image: mysql
|
image: mysql
|
||||||
|
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: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||||
restart: always
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_DATA}:/var/lib/mysql:nocopy
|
- ${VOLUME_DB}:/var/lib/mysql:nocopy
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -47,7 +51,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- ninja-net
|
- ninja-net
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8000:8000"
|
||||||
|
retart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_WEB}:/etc/nginx:nocopy
|
- ${VOLUME_WEB}:/etc/nginx:nocopy
|
||||||
volumes_from:
|
volumes_from:
|
||||||
@@ -58,19 +63,11 @@ environment:
|
|||||||
- APP_URL=${APP_URL}
|
- APP_URL=${APP_URL}
|
||||||
- APP_KEY=${APP_KEY}
|
- APP_KEY=${APP_KEY}
|
||||||
- APP_CIPHER='AES-256-CBC'
|
- APP_CIPHER='AES-256-CBC'
|
||||||
- DB_HOST='mysql'
|
- DB_HOST='db'
|
||||||
- DB_STRICT='false'
|
- DB_STRICT='false'
|
||||||
- DB_TYPE='mysql'
|
- DB_TYPE='mysql'
|
||||||
- DB_USERNAME='ninja'
|
- DB_USERNAME='root'
|
||||||
- DB_PASSWORD='pwd'
|
- DB_PASSWORD='test123456'
|
||||||
- MAIL_HOST='mail.service.host'
|
|
||||||
- MAIL_DRIVER='smtp'
|
|
||||||
- MAIL_FROM_ADDRESS='user@mail.com'
|
|
||||||
- MAIL_FROM_NAME='My name'
|
|
||||||
- MAIL_USERNAME='username'
|
|
||||||
- MAIL_PASSWORD='password'
|
|
||||||
- MYSQL_DATABASE='ninja'
|
|
||||||
- MYSQL_ROOT_PASSWORD='pwd'
|
|
||||||
networks:
|
networks:
|
||||||
ninja-net:
|
ninja-net:
|
||||||
volumes_driver: rancher-nfs
|
volumes_driver: rancher-nfs
|
||||||
@@ -32,11 +32,11 @@ catalog:
|
|||||||
default: "InvoiceNinja-Storage"
|
default: "InvoiceNinja-Storage"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_DATA"
|
- variable: "VOLUME_DB"
|
||||||
label: "Persistent Data Volume"
|
label: "Persistent Data Volume"
|
||||||
description: |
|
description: |
|
||||||
The volume name that should be used for persistent storage
|
The volume name that should be used for persistent storage
|
||||||
default: "InvoiceNinja-Data"
|
default: "InvoiceNinja-DB"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "VOLUME_WEB"
|
- variable: "VOLUME_WEB"
|
||||||
|
|||||||
Reference in New Issue
Block a user