-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (102 loc) · 3.99 KB
/
docker-compose.yml
File metadata and controls
102 lines (102 loc) · 3.99 KB
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
92
93
94
95
96
97
98
99
100
101
102
version: '2.0'
services:
controller:
image: idyl/wikibench-controller
network_mode: bridge
labels:
- "com.joyent.package=sample-4G"
- 'com.docker.swarm.affinities=["container!=mirror-database*"]'
- "triton.cns.services=wikibench-controller"
- "wikibench-controller"
expose:
- 48657
environment:
- container!=mirror-database*
- MYSQL_USER=root
- MYSQL_PASSWORD=SGK22152FJdfslR
- MYSQL_DATABASE=mirror
- MYSQL_HOST=172.16.203.84
- MYSQL_PORT=3306
- REDUCTION_PERMIL=600
- WORKER_COUNT=24
balancer_a:
image: wikipedia-nginx:2018-11
network_mode: bridge
labels:
- "com.joyent.package=demo-caching-16G"
expose:
- 80
environment:
- container!=wikibenchdocker_balancer_b
- container!=wikibenchdocker_balancer_c
balancer_b:
image: wikipedia-nginx:2018-11
network_mode: bridge
labels:
- "com.joyent.package=demo-caching-16G"
expose:
- 80
environment:
- container!=wikibenchdocker_balancer_a
- container!=wikibenchdocker_balancer_c
balancer_c:
image: wikipedia-nginx:2018-11
network_mode: bridge
labels:
- "com.joyent.package=demo-caching-16G"
expose:
- 80
environment:
- container!=wikibenchdocker_balancer_b
- container!=wikibenchdocker_balancer_a
worker_a:
image: idyl/wikibench-worker
network_mode: bridge
labels:
- "com.joyent.package=sample-256M"
- "wikibench-worker"
restart: on-failure
links:
- controller:controller
- balancer_a:balancer_a
volumes_from:
- controller:rw
environment:
- THREAD_COUNT=64
- CONTROLLER_ADDR=controller
- TARGET_ADDR=balancer_a
- TIMEOUT=500
worker_b:
image: idyl/wikibench-worker
network_mode: bridge
labels:
- "com.joyent.package=sample-256M"
- "wikibench-worker"
restart: on-failure
links:
- controller:controller
- balancer_b:balancer_b
volumes_from:
- controller:rw
environment:
- THREAD_COUNT=64
- CONTROLLER_ADDR=controller
- TARGET_ADDR=balancer_b
- TIMEOUT=500
worker_c:
image: idyl/wikibench-worker
network_mode: bridge
labels:
- "com.joyent.package=sample-256M"
- "wikibench-worker"
restart: on-failure
links:
- controller:controller
- balancer_c:balancer_c
volumes_from:
- controller:rw
environment:
- THREAD_COUNT=64
- CONTROLLER_ADDR=controller
- TARGET_ADDR=balancer_c
- TIMEOUT=500