commit
						11b29fac80
					
				
							
								
								
									
										130
									
								
								templates/zammad/1/docker-compose.yml.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										130
									
								
								templates/zammad/1/docker-compose.yml.tpl
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,130 @@
 | 
				
			|||||||
 | 
					version: '2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  zammad-backup:
 | 
				
			||||||
 | 
					    command: ["zammad-backup"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-railsserver
 | 
				
			||||||
 | 
					    entrypoint: /usr/local/bin/backup.sh
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-postgresql-2.2.0-12
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-backup:/var/tmp/zammad
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-elasticsearch:
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-elasticsearch-2.2.0-12
 | 
				
			||||||
 | 
					    {{- if eq .Values.UPDATE_SYSCTL "true" }}
 | 
				
			||||||
 | 
					    labels:
 | 
				
			||||||
 | 
					      io.rancher.sidekicks: zammad-elasticsearch-sysctl
 | 
				
			||||||
 | 
					    {{- end}}
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - elasticsearch-data:/usr/share/elasticsearch/data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  {{- if eq .Values.UPDATE_SYSCTL "true" }}
 | 
				
			||||||
 | 
					  zammad-elasticsearch-sysctl:
 | 
				
			||||||
 | 
					    labels:
 | 
				
			||||||
 | 
					        io.rancher.container.start_once: true
 | 
				
			||||||
 | 
					    network_mode: none
 | 
				
			||||||
 | 
					    image: rawmind/alpine-sysctl:0.1
 | 
				
			||||||
 | 
					    privileged: true
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					        - "SYSCTL_KEY=vm.max_map_count"
 | 
				
			||||||
 | 
					        - "SYSCTL_VALUE=262144"
 | 
				
			||||||
 | 
					  {{- end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-init:
 | 
				
			||||||
 | 
					    command: ["zammad-init"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-2.2.0-12
 | 
				
			||||||
 | 
					    labels:
 | 
				
			||||||
 | 
					      io.rancher.container.start_once: true
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-elasticsearch
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    restart: on-failure
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-lb:
 | 
				
			||||||
 | 
					    image: rancher/lb-service-haproxy:v0.7.9
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - ${PUBLISH_PORT}:${PUBLISH_PORT}/tcp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-memcached:
 | 
				
			||||||
 | 
					    command: ["zammad-memcached"]
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-memcached-2.2.0-12
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-nginx:
 | 
				
			||||||
 | 
					    command: ["zammad-nginx"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-railsserver
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-2.2.0-12
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-railsserver
 | 
				
			||||||
 | 
					      - zammad-websocket
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-postgresql:
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-postgresql-2.2.0-12
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - postgresql-data:/var/lib/postgresql/data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-railsserver:
 | 
				
			||||||
 | 
					    command: ["zammad-railsserver"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-2.2.0-12
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-elasticsearch
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-scheduler:
 | 
				
			||||||
 | 
					    command: ["zammad-scheduler"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					      - zammad-railsserver
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-2.2.0-12
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-elasticsearch
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-websocket:
 | 
				
			||||||
 | 
					    command: ["zammad-websocket"]
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					      - zammad-railsserver
 | 
				
			||||||
 | 
					    image: zammad/zammad-docker-compose:zammad-2.2.0-12
 | 
				
			||||||
 | 
					    links:
 | 
				
			||||||
 | 
					      - zammad-postgresql
 | 
				
			||||||
 | 
					      - zammad-memcached
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - zammad-data:/opt/zammad
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  elasticsearch-data:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  postgresql-data:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  zammad-backup:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  zammad-data:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
							
								
								
									
										83
									
								
								templates/zammad/1/rancher-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								templates/zammad/1/rancher-compose.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,83 @@
 | 
				
			|||||||
 | 
					version: '2'
 | 
				
			||||||
 | 
					catalog:
 | 
				
			||||||
 | 
					  name: "Zammad"
 | 
				
			||||||
 | 
					  version: "2.2.0-12"
 | 
				
			||||||
 | 
					  description: "Zammad is a web based open source helpdesk/customer support system"
 | 
				
			||||||
 | 
					  uuid: zammad-1
 | 
				
			||||||
 | 
					  minimum_rancher_version: v1.2.0
 | 
				
			||||||
 | 
					  questions:
 | 
				
			||||||
 | 
					    - variable: "UPDATE_SYSCTL"
 | 
				
			||||||
 | 
					      label: "Update host sysctl:"
 | 
				
			||||||
 | 
					      description: |
 | 
				
			||||||
 | 
					        Set true to avoid vm.max_map_count errors.
 | 
				
			||||||
 | 
					        WARN: If set true, host param vm.max_map_count will be update to 262144.
 | 
				
			||||||
 | 
					      default: false
 | 
				
			||||||
 | 
					      required: true
 | 
				
			||||||
 | 
					      type: enum
 | 
				
			||||||
 | 
					      options:
 | 
				
			||||||
 | 
					        - false
 | 
				
			||||||
 | 
					        - true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - variable: "PUBLISH_PORT"
 | 
				
			||||||
 | 
					      label: "Publish port"
 | 
				
			||||||
 | 
					      description: |
 | 
				
			||||||
 | 
					        Set port to publish the service.
 | 
				
			||||||
 | 
					      required: true
 | 
				
			||||||
 | 
					      type: "int"
 | 
				
			||||||
 | 
					      default: 9797
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  zammad-backup:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    start_on_create: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-elasticsearch:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    start_on_create: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-init:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    start_on_create: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-lb:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    lb_config:
 | 
				
			||||||
 | 
					      port_rules:
 | 
				
			||||||
 | 
					      - priority: 1
 | 
				
			||||||
 | 
					        protocol: http
 | 
				
			||||||
 | 
					        source_port: ${PUBLISH_PORT}
 | 
				
			||||||
 | 
					        target_port: 80
 | 
				
			||||||
 | 
					        service: zammad-nginx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-memcached:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    start_on_create: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-nginx:
 | 
				
			||||||
 | 
					    scale: 1
 | 
				
			||||||
 | 
					    start_on_create: true
 | 
				
			||||||
 | 
					    health_check:
 | 
				
			||||||
 | 
					      healthy_threshold: 2
 | 
				
			||||||
 | 
					      response_timeout: 2000
 | 
				
			||||||
 | 
					      port: 80
 | 
				
			||||||
 | 
					      unhealthy_threshold: 3
 | 
				
			||||||
 | 
					      initializing_timeout: 300000
 | 
				
			||||||
 | 
					      interval: 2000
 | 
				
			||||||
 | 
					      strategy: recreate
 | 
				
			||||||
 | 
					      request_line: GET "/" "HTTP/1.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  zammad-postgresql:
 | 
				
			||||||
 | 
					    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
 | 
				
			||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
name: Zammad
 | 
					name: Zammad
 | 
				
			||||||
description: |
 | 
					description: |
 | 
				
			||||||
  Zammad is a web based open source helpdesk/customer support system
 | 
					  Zammad is a web based open source helpdesk/customer support system
 | 
				
			||||||
version: "1.2"
 | 
					version: "2.2.0-12"
 | 
				
			||||||
category: Ticketsystems
 | 
					category: Ticketsystems
 | 
				
			||||||
maintainer: "Zammad Project <info@zammad.org>"
 | 
					maintainer: "Zammad Project <info@zammad.org>"
 | 
				
			||||||
projectURL: https://github.com/zammad/zammad
 | 
					projectURL: https://github.com/zammad/zammad
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user