This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
motorn.yml
55 lines (52 loc) · 1.34 KB
/
motorn.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
load_balancers:
- name: motorn
health_check:
ping_protocol: http
ping_port: 8083
ping_path: "/health"
response_timeout: 2
interval: 5
unhealthy_threshold: 2
healthy_threshold: 5
listeners:
- protocol: ssl
load_balancer_port: 443
instance_protocol: tcp
instance_port: 8083
ssl_certificate_id: "{{public_certificate}}"
security_groups:
- "{{coreos_public_elb_security_group}}"
scheme: internet-facing
dns_records:
- record: api
load_balancer_name: motorn
public: yes
- record: myst
load_balancer_name: motorn
public: yes
tasks:
- family: motorn
containerDefinitions:
- name: motorn
image: quay.io/opsee/motorn:{{ecs_image_tag}}
memory: 256
cpu: 124
logConfiguration: {"logDriver":"json-file", options: {"max-size": "10m","max-file": "3"}}
environment:
- name: APPENV
value: motornenv-{{opseeenv}}-{{region}}
portMappings:
- hostPort: 8083
containerPort: 8083
protocol: tcp
command:
- "./run.sh"
services:
- serviceName: motorn
taskDefinition: motorn
loadBalancers:
- loadBalancerName: motorn
containerName: motorn
containerPort: 8083
desiredCount: 2
role: "{{ecs_role}}"