forked from pushkin-consortium-deprecated/deprecated3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrancher-compose.yml
72 lines (72 loc) · 1.53 KB
/
rancher-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '2'
services:
api:
start_on_create: true
health_check:
healthy_threshold: 2
response_timeout: 2000
port: 3000
unhealthy_threshold: 3
initializing_timeout: 60000
interval: 2000
strategy: none
reinitializing_timeout: 60000
cron:
scale: 1
start_on_create: true
db-worker:
scale: 1
start_on_create: true
load-balancer:
scale: 1
start_on_create: true
lb_config:
config: |-
frontend http-frontend
bind *:80
mode http
redirect scheme https code 302 if !{ ssl_fc }
default_cert: gameswithwords
port_rules:
- protocol: http
selector: dummy
source_port: 80
- path: ''
protocol: https
service: server
source_port: 443
target_port: 80
- path: /api
protocol: https
service: api
source_port: 443
target_port: 3000
health_check:
healthy_threshold: 2
response_timeout: 2000
port: 42
unhealthy_threshold: 3
interval: 2000
message-queue:
metadata:
message-queue: *id001
scale: 1
start_on_create: true
message-queue-base:
metadata:
message-queue: *id001
scale: 1
start_on_create: true
message-queue-datavolume:
metadata:
message-queue: &id001
config:
node.name: $${HOSTNAME}
scale: 1
start_on_create: true
server:
scale: 1
start_on_create: true
listener-quiz:
scale: 1
start_on_create: true