-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 2.03 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
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
version: '3'
services:
locust:
image: locustio/locust
ports:
- "8089:8089"
volumes:
- ./:/mnt/locust
user: "${UID}:${GID}"
command: >
-f /mnt/locust/locustfile.py -H http://${TARGETHOST:-server}
--users ${USERS:-500} --spawn-rate ${SPAWN:-10}
--run-time ${RUNTIME:-2m}
--autostart
--autoquit 5
--html /mnt/locust/users-${USERS:-500}_spawn-${SPAWN:-10}_python-${PYTHON:-3.6.12}_flavor-${FLAVOR:-buster}_aiohttp-${AIOHTTP:-3.7.3}_loop-${EVENTLOOP-asyncio}_commit-${COMMIT-UNK}.html
server:
build:
context: ./
dockerfile: dockerfile
target: server
args:
AIOHTTP: ${AIOHTTP:-3.7.3}
PYTHON: ${PYTHON:-3.6.12}
FLAVOR: ${FLAVOR:-buster}
CT_TOTAL: ${CT_TOTAL:-1}
CT_CONNECT: ${CT_CONNECT:-0.5}
CT_SOCK_CONNECT: ${CT_SOCK_CONNECT:-0.5}
environment:
- EVENTLOOP=${EVENTLOOP-asyncio}
source-server:
build:
context: ./
dockerfile: dockerfile.source
target: server
args:
COMMIT: ${COMMIT}
AIOHTTP: ${AIOHTTP:-v3.7.3}
PYTHON: ${PYTHON:-3.6.12}
FLAVOR: ${FLAVOR:-buster}
CT_TOTAL: ${CT_TOTAL:-1}
CT_CONNECT: ${CT_CONNECT:-0.5}
CT_SOCK_CONNECT: ${CT_SOCK_CONNECT:-0.5}
environment:
- EVENTLOOP=${EVENTLOOP-asyncio}
spied-server:
build:
context: ./
dockerfile: dockerfile
target: spied-server
args:
AIOHTTP: ${AIOHTTP:-3.7.3}
PYTHON: ${PYTHON:-3.6.12}
FLAVOR: ${FLAVOR:-buster}
CT_TOTAL: ${CT_TOTAL:-1}
CT_CONNECT: ${CT_CONNECT:-0.5}
CT_SOCK_CONNECT: ${CT_SOCK_CONNECT:-0.5}
cap_add:
- SYS_PTRACE
volumes:
- ./:/mnt/spy
environment:
- EVENTLOOP=${EVENTLOOP-asyncio}
stop_grace_period: 2m
proxied:
build:
context: ./
dockerfile: dockerfile
args:
AIOHTTP: ${AIOHTTP:-3.7.3}
PYTHON: ${PYTHON:-3.6.12}
FLAVOR: ${FLAVOR:-buster}
environment:
- EVENTLOOP=${EVENTLOOP-asyncio}