-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
50 lines (45 loc) · 1.06 KB
/
docker-compose.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
version: '2'
services:
# prometheus:
# image: prom/prometheus
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# - ./prometheus/data:/root/prometheus/prometheus-data
# links:
# - locust-master
# ports:
# - "9090:9090"
# grafana:
# image: grafana/grafana
# volumes:
# - ./grafana/data:/var/lib/grafana
# links:
# - prometheus
# ports:
# - "3000:3000"
flask-demo:
image: shaonian/flask-demo:latest
locust-master:
image: shaonian/locust-master:latest
ports:
- "8089:8089"
locust-slave1:
image: shaonian/locust-slave:latest
command:
- ./target
- --master-host=locust-master
- --master-port=5557
- --url=http://flask-demo:5000
links:
- locust-master
- flask-demo
# locust-slave2:
# image: shaonian/locust-slave:latest
# command:
# - ./target
# - --master-host=locust-master
# - --master-port=5557
# - --url=http://flask-demo:5000
# links:
# - locust-master
# - flask-demo