-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-consul.yml
59 lines (56 loc) · 1.12 KB
/
docker-consul.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
version: "3.3"
services:
master:
image: mtenrero/jmeter
tty: true
networks:
- distributed
volumes:
- ./test:/test
environment:
- MODE=master
- TEST_NAME=$TEST_NAME
- REMOTES=slave
expose:
- 6666
depends_on:
- slave
links:
- slave
slave:
image: mtenrero/jmeter
tty: true
networks:
- distributed
environment:
- MODE=node
expose:
- 7777
- 1099
- 4445
deploy:
replicas: 3
# Only one for the whole cluster
consul:
command: -server -bootstrap
image: progrium/consul:latest
container_name: 'consul'
environment:
SERVICE_53_IGNORE: 'yes'
SERVICE_8300_IGNORE: 'yes'
SERVICE_8301_IGNORE: 'yes'
SERVICE_8302_IGNORE: 'yes'
SERVICE_8400_IGNORE: 'yes'
SERVICE_8500_NAME: 'consul-admin_infra'
# Exactly one per physical node
registrator:
command: "-internal consul://consul:8500"
image: gliderlabs/registrator:latest
container_name: 'registrator'
links:
- "consul"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
networks:
distributed:
driver: overlay