forked from zalando-incubator/docker-locust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (48 loc) · 1.1 KB
/
docker-compose.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
version: '2'
services:
master:
image: $IMAGE
ports:
- 5557-5558:5557-5558
- 8089:8089
volumes:
- ~/.aws:/root/.aws
- ./:/opt/script
environment:
- ROLE=master
- TARGET_HOST=$TARGET_HOST
- LOCUST_FILE=$LOCUST_FILE
- SEND_ANONYMOUS_USAGE_INFO=$SEND_ANONYMOUS_USAGE_INFO
- BUILD_URL=$BUILD_URL
slave:
image: $IMAGE
depends_on:
- master
network_mode: "service:master"
volumes:
- ~/.aws:/root/.aws
- ./:/opt/script
- ./credentials:/meta/credentials
environment:
- ROLE=slave
- MASTER_HOST=master
- TARGET_HOST=$TARGET_HOST
- LOCUST_FILE=$LOCUST_FILE
- SLAVE_MUL=$SLAVE_NUM
- OAUTH=$OAUTH
- URL=$URL
- SCOPES=$SCOPES
controller:
image: $IMAGE
container_name: docker_locusts_controller
depends_on:
- master
network_mode: "service:master"
environment:
- ROLE=controller
- MASTER_HOST=master
- AUTOMATIC=$AUTOMATIC
- TOTAL_SLAVES=$SLAVE_NUM
- USERS=$USERS
- HATCH_RATE=$HATCH_RATE
- DURATION=$DURATION