-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvox.example.yml
62 lines (59 loc) · 1.44 KB
/
convox.example.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
services:
web:
image: 691950705664.dkr.ecr.us-east-1.amazonaws.com/docspring/enterprise
# domain: docspring.example.com
health:
path: ${HEALTH_CHECK_PATH}
grace: 50
interval: 5
command: run_as_deploy foreman start -m web=1
deployment:
minimum: 50
maximum: 200
# To see available CPU/RAM: convox api get /system/capacity
scale:
memory: 1400
cpu: 600
count: 3-6
targets:
cpu: 90
environment:
- "*"
- WEB_CONCURRENCY=2
- RAILS_MAX_THREADS=5
- REQUEST_TIMEOUT=30
- FORCE_SSL=true
- PORT=4001
port: 4001
ingressAnnotations:
- nginx.ingress.kubernetes.io/proxy-buffer-size=32k
worker:
image: 691950705664.dkr.ecr.us-east-1.amazonaws.com/docspring/enterprise
command: run_as_deploy foreman start -m worker=1
deployment:
minimum: 50
maximum: 200
scale:
memory: 2000
cpu: 700
count: 3-6
targets:
cpu: 90
environment:
- "*"
- FORCE_SSL=true
privileged: true
command:
image: 691950705664.dkr.ecr.us-east-1.amazonaws.com/docspring/enterprise
command: echo "You can use this service to run rake tasks, rails console, etc."
scale:
memory: 512
cpu: 250
count: 0
environment:
- "*"
timers:
update-submissions:
schedule: 0 3 * * ?
command: run_as_deploy rake submissions:enqueue_expiry_jobs
service: command