added rancher labels & rancher-compose.yml
This commit is contained in:
parent
73123632e2
commit
d7293a68de
@ -4,12 +4,16 @@ services:
|
|||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: zammad/zammad-docker-compose:elasticsearch
|
image: zammad/zammad-docker-compose:elasticsearch
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
depends_on:
|
depends_on:
|
||||||
- zammad
|
- zammad
|
||||||
image: zammad/zammad-docker-compose:nginx
|
image: zammad/zammad-docker-compose:nginx
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
links:
|
links:
|
||||||
- zammad-railsserver
|
- zammad-railsserver
|
||||||
- zammad-websocket
|
- zammad-websocket
|
||||||
@ -21,16 +25,23 @@ services:
|
|||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
image: zammad/zammad-docker-compose:postgresql
|
image: zammad/zammad-docker-compose:postgresql
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
zammad:
|
zammad:
|
||||||
image: zammad/zammad-docker-compose:zammad
|
image: zammad/zammad-docker-compose:zammad
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
|
io.rancher.container.start_once: true
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- data-zammad:/home/zammad
|
- data-zammad:/home/zammad
|
||||||
|
|
||||||
zammad-railsserver:
|
zammad-railsserver:
|
||||||
image: zammad/zammad-docker-compose:zammad-railsserver
|
image: zammad/zammad-docker-compose:zammad-railsserver
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
links:
|
links:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
- postgresql
|
- postgresql
|
||||||
@ -43,6 +54,8 @@ services:
|
|||||||
|
|
||||||
zammad-scheduler:
|
zammad-scheduler:
|
||||||
image: zammad/zammad-docker-compose:zammad-scheduler
|
image: zammad/zammad-docker-compose:zammad-scheduler
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
links:
|
links:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
- postgresql
|
- postgresql
|
||||||
@ -55,6 +68,8 @@ services:
|
|||||||
|
|
||||||
zammad-websocket:
|
zammad-websocket:
|
||||||
image: zammad/zammad-docker-compose:zammad-websocket
|
image: zammad/zammad-docker-compose:zammad-websocket
|
||||||
|
labels:
|
||||||
|
io.rancher.container.pull_image: always
|
||||||
links:
|
links:
|
||||||
- postgresql
|
- postgresql
|
||||||
- zammad
|
- zammad
|
||||||
|
31
rancher-compose.yml
Normal file
31
rancher-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user