This commit is contained in:
William Miceli
2018-03-27 13:03:30 -04:00
parent 3e1e0b4df7
commit 902f2ccad2
2 changed files with 12 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
version: '2'
services:
invoiceninja:
app:
image: invoiceninja/invoiceninja
labels:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
@@ -26,7 +26,7 @@ services:
networks:
- ninja-net
volumes_from:
- invoiceninja
- app
db:
image: mysql
restart: always
@@ -37,16 +37,16 @@ services:
networks:
- ninja-net
ports:
- "8000:80"
# volumes:
# - type: volume
# source: ${VOLUME_WEB}
# target: /etc/nginx/nginx.conf
# read_only: true
# volume:
# nocopy: true
- 8000:80
volumes:
- type: 'volume'
source: ${VOLUME_WEB}
target: /etc/nginx/nginx.conf
read_only: true
volume:
nocopy: true
volumes_from:
- invoiceninja
- app
environment:
- APP_DEBUG=0
- APP_ENV='production'

View File

@@ -81,5 +81,5 @@ catalog:
default: "SomeRandomStringSomeRandomString"
required: true
type: string
invoiceninja:
app:
scale: 1