Update template (#108)

* Specify volume driver everywhere, configure Redis for Nuxeo

* typo
This commit is contained in:
Damien Metzler 2016-07-26 18:51:57 +02:00 committed by Bill Maxwell
parent bec8e0d245
commit b416078b00
3 changed files with 27 additions and 3 deletions

View File

@ -6,7 +6,7 @@ postgres-datavolume:
entrypoint: chown -R postgres:postgres /var/lib/postgresql/data
volume_driver: ${volumedriver}
volumes:
- nuxeo-postgres:/var/lib/postgresql/data
- /var/lib/postgresql/data
postgres:
image: nuxeo/postgres
@ -25,6 +25,7 @@ elasticsearch-masters:
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: elasticsearch-base-master,elasticsearch-datavolume-masters
volume_driver: ${volumedriver}
elasticsearch-datavolume-masters:
labels:
elasticsearch.datanode.config.version: '0'
@ -52,6 +53,7 @@ redis:
tty: true
image: redis:3.0.3
stdin_open: true
volume_driver: ${volumedriver}
nuxeo-datavolume:
labels:
@ -73,6 +75,8 @@ nuxeo:
NUXEO_ES_HOSTS: elasticsearch:9300
NUXEO_DATA: /data/nuxeo/data/
NUXEO_LOG: /data/nuxeo/log/
NUXEO_REDIS_HOST: redis
NUXEO_URL: ${url}
labels:
io.rancher.sidekicks: nuxeo-datavolume
io.rancher.container.hostname_override: container_name

View File

@ -18,13 +18,20 @@
description: |
List of Nuxeo packages
default: nuxeo-web-mobile nuxeo-drive nuxeo-diff nuxeo-spreadsheet nuxeo-dam nuxeo-template-rendering nuxeo-template-rendering-samples nuxeo-showcase-content
- variable: "volumedriver"
- variable: url
description: "The URL that this nuxeo instance should serve"
label: "Nuxeo URL"
type: "string"
required: true
default: "http://localhost:8080/"
- variable: volumedriver
type: "string"
label: "Volume driver"
description: |
Specifiy docker volume driver to use
Specifiy docker volume driver to use
default: local
nuxeo:
scale: 1
health_check:

13
templates/nuxeo/README.md Normal file
View File

@ -0,0 +1,13 @@
# Nuxeo
This templates deploys a Nuxeo server with all its companions (Elasticsearch, Redis and Postgres) to be able to run Nuxeo on top of you Rancher infrastructure
# How to use it ?
Just create and launch the stack. After that, you have to point a load balancer of you infrasctructure to the internal stack load balancer.
We made this choice, since it allows to start several Nuxeo server instance on the same infrastructure.
After that you can login with the regular user/password combination Administrator/Administrator.