From d7293a68de85602fb1e4de6e0d08e330d92a4c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 17 Jan 2017 14:05:58 +0100 Subject: [PATCH] added rancher labels & rancher-compose.yml --- docker-compose.yml | 15 +++++++++++++++ rancher-compose.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 rancher-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml index 9dc593d..ec763a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/rancher-compose.yml b/rancher-compose.yml new file mode 100644 index 0000000..c603be7 --- /dev/null +++ b/rancher-compose.yml @@ -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