Back to Basics
This commit is contained in:
@@ -2,23 +2,20 @@ version: '2'
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: invoiceninja/invoiceninja
|
image: invoiceninja/invoiceninja
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
environment:
|
environment:
|
||||||
- APP_DEBUG=0
|
- APP_DEBUG=0
|
||||||
- APP_ENV='production'
|
- APP_ENV='production'
|
||||||
- APP_KEY=${APP_KEY}
|
- APP_KEY=${APP_KEY}
|
||||||
- APP_CIPHER='AES-256-CBC'
|
- APP_CIPHER='AES-256-CBC'
|
||||||
- DB_HOST='db'
|
- APP_URL='http://localhost:${WEB_PORT}'
|
||||||
- DB_STRICT='false'
|
- DB_HOST='mysql'
|
||||||
- DB_TYPE='mysql'
|
- DB_DATABASE='ninja'
|
||||||
- DB_USERNAME='ninja'
|
- DB_USERNAME='root'
|
||||||
- DB_PASSWORD='ninja'
|
- DB_PASSWORD='ninjaPass'
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
io.rancher.sidekicks: cron, web
|
links:
|
||||||
networks:
|
- db:mysql
|
||||||
- ninja-net
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo
|
- ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo
|
||||||
@@ -40,22 +37,22 @@ services:
|
|||||||
- APP_ENV='production'
|
- APP_ENV='production'
|
||||||
- APP_KEY=${APP_KEY}
|
- APP_KEY=${APP_KEY}
|
||||||
- APP_CIPHER='AES-256-CBC'
|
- APP_CIPHER='AES-256-CBC'
|
||||||
- DB_HOST='db'
|
- APP_URL='http://localhost:${WEB_PORT}'
|
||||||
- DB_STRICT='false'
|
- DB_HOST='mysql'
|
||||||
- DB_TYPE='mysql'
|
- DB_DATABASE='ninja'
|
||||||
- DB_USERNAME='ninja'
|
- DB_USERNAME='root'
|
||||||
- DB_PASSWORD='ninja'
|
- DB_PASSWORD='ninjaPass'
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
networks:
|
links:
|
||||||
- ninja-net
|
- db:mysql
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
db:
|
db:
|
||||||
image: mysql
|
image: mysql
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD='ninja'
|
- MYSQL_ROOT_PASSWORD='ninjaPass'
|
||||||
- MYSQL_DATABASE='ninja'
|
- MYSQL_DATABASE='ninja'
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
@@ -64,12 +61,10 @@ services:
|
|||||||
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
depends_on:
|
|
||||||
- app
|
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
networks:
|
links:
|
||||||
- ninja-net
|
- app
|
||||||
ports:
|
ports:
|
||||||
- "${WEB_PORT}:80"
|
- "${WEB_PORT}:80"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
@@ -77,5 +72,3 @@ services:
|
|||||||
- ${STORAGE_BASE_DIR}${CONFIG_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ${STORAGE_BASE_DIR}${CONFIG_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- app
|
- app
|
||||||
networks:
|
|
||||||
ninja-net:
|
|
||||||
@@ -14,7 +14,7 @@ catalog:
|
|||||||
- variable: "WEB_PORT"
|
- variable: "WEB_PORT"
|
||||||
label: "Port Number"
|
label: "Port Number"
|
||||||
description: |
|
description: |
|
||||||
Port to access the web interface on
|
The port to access the web interface on.
|
||||||
default: "8000"
|
default: "8000"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -35,21 +35,21 @@ catalog:
|
|||||||
- variable: "STORAGE_DIR"
|
- variable: "STORAGE_DIR"
|
||||||
label: "Storage Directory"
|
label: "Storage Directory"
|
||||||
description: |
|
description: |
|
||||||
The
|
The folder for persistent storage files.
|
||||||
default: "/Storage"
|
default: "/Storage"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "DB_DIR"
|
- variable: "DB_DIR"
|
||||||
label: "Database Directory"
|
label: "Database Directory"
|
||||||
description: |
|
description: |
|
||||||
The
|
The folder which will store the persistent database files.
|
||||||
default: "/Database"
|
default: "/Database"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
- variable: "CONFIG_DIR"
|
- variable: "CONFIG_DIR"
|
||||||
label: "Configuration Directory"
|
label: "Configuration Directory"
|
||||||
description: |
|
description: |
|
||||||
The
|
The folder which configuration files should be in.
|
||||||
default: "/Config"
|
default: "/Config"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user