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