-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yaml
91 lines (90 loc) · 2.57 KB
/
test.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
__fleetdef:
schema: 1
servicegroups:
prod-webapp1:
copies: 1
env: prod
containers:
redis:
description: Redis instance
image: redis
# Use wants to ensure container gets killed when the other one does
wants:
- prod-helloweather.service
# Use before or after to declare order to start up. More than one entries can be defined
before:
- prod-helloweather.service
#ports:
# public:local
# - 9999:6379
limits:
memory: 0.2g
cpu: 0.5
# conflicts:
# - redis*.service
helloweather:
description: Test weather app dependeing on redis
image: luebken/currentweather
# OPTION: define domain name
domain: prodhelloweather
# OPTIONAL: define list of port associations
ports:
- 80:1337
# OPTIONAL: define list of link associations
# Use the container name for links, skip the .service bit
links:
- prod-redis:redis
# OPTIONAL: define wants/after keywords
# Note: list order is preserved
wants:
- prod-redis.service
after:
- prod-redis*.service
# OPTIONAL: define limits for container
limits:
memory: 0.2g
cpu: 0.5
# OPTIONAL:
# Define here lists for MachineID, MachineOf, MachineMedata, Conflicts, Global
# define all those as lowercase
conflicts:
- staging-helloworld*.service
- staging-redis*.service
machineof:
- prod-redis.service
staging-webapp1:
copies: 1
env: staging
containers:
redis:
description: Redis instance
image: redis
# Use wants to ensure container gets killed when the other one does
wants:
- helloworld.service
# Use before or after to declare order to start up. More than one entries can be defined
#ports:
# public:local
# - 9999:6379
limits:
memory: 0.2g
cpu: 0.5
# conflicts:
# - redis*.service
helloworld:
description: Hello World web app
image: tutum/hello-world
domain: stagingtestapp
ports:
- 80:80
# Note: list order is preserved
wants:
- redis.service
after:
- redis.service
limits:
memory: 0.2g
cpu: 0.5
# Define here lists for MachineID, MachineOf, MachineMedata, Conflicts, Global
conflicts:
- prod*.service