- removed double declaration of nginx services

- added nginx health check
- fixed labels
This commit is contained in:
André Bauer
2017-12-19 14:19:24 +01:00
parent 9155ff4fb5
commit a5925e3089
2 changed files with 32 additions and 22 deletions
+27 -15
View File
@@ -18,6 +18,14 @@ catalog:
- 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
@@ -31,6 +39,16 @@ services:
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
@@ -38,6 +56,15 @@ services:
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
@@ -54,18 +81,3 @@ services:
zammad-websocket:
scale: 1
start_on_create: true
zammad-nginx:
scale: 1
start_on_create: true
drain_timeout_ms: 10000
zammad-lb:
scale: 1
lb_config:
port_rules:
- priority: 1
protocol: http
source_port: 9797
target_port: 80
service: zammad-nginx