added rancher labels & rancher-compose.yml

This commit is contained in:
André Bauer 2017-01-17 14:05:58 +01:00
parent 73123632e2
commit d7293a68de
2 changed files with 46 additions and 0 deletions

View File

@ -4,12 +4,16 @@ services:
elasticsearch:
image: zammad/zammad-docker-compose:elasticsearch
labels:
io.rancher.container.pull_image: always
restart: always
nginx:
depends_on:
- zammad
image: zammad/zammad-docker-compose:nginx
labels:
io.rancher.container.pull_image: always
links:
- zammad-railsserver
- zammad-websocket
@ -21,16 +25,23 @@ services:
postgresql:
image: zammad/zammad-docker-compose:postgresql
labels:
io.rancher.container.pull_image: always
restart: always
zammad:
image: zammad/zammad-docker-compose:zammad
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: true
restart: on-failure
volumes:
- data-zammad:/home/zammad
zammad-railsserver:
image: zammad/zammad-docker-compose:zammad-railsserver
labels:
io.rancher.container.pull_image: always
links:
- elasticsearch
- postgresql
@ -43,6 +54,8 @@ services:
zammad-scheduler:
image: zammad/zammad-docker-compose:zammad-scheduler
labels:
io.rancher.container.pull_image: always
links:
- elasticsearch
- postgresql
@ -55,6 +68,8 @@ services:
zammad-websocket:
image: zammad/zammad-docker-compose:zammad-websocket
labels:
io.rancher.container.pull_image: always
links:
- postgresql
- zammad

31
rancher-compose.yml Normal file
View File

@ -0,0 +1,31 @@
version: '2'
services:
elasticsearch:
scale: 1
start_on_create: true
nginx:
scale: 1
start_on_create: true
postgresql:
scale: 1
start_on_create: true
zammad:
scale: 1
start_on_create: true
zammad-scheduler:
scale: 1
start_on_create: true
zammad-railsserver:
scale: 1
start_on_create: true
zammad-websocket:
scale: 1
start_on_create: true