-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (61 loc) · 1.67 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
version: "3.9"
services:
build:
image: node:18.16.0-alpine
command:
- sh
- -c
- |
npm install
npm run build
working_dir: /app
volumes:
- .:/app
- build:/app/dist
- node_cache:/app/node_modules
clean:
image: busybox
command:
- sh
- -c
- |
rm -rf dist
rm -rf node_modules
working_dir: /app
volumes:
- .:/app
- build:/app/dist
- node_cache:/app/node_modules
k6:
image: k6:custom
build:
context: ./extensions
environment:
- TEST=$TEST
- SCENARIOS=$SCENARIOS
- LOG_FILE=$LOG_FILE
# command: run /dist/$TEST.js
# command: run --log-output=loki=http://localhost:3100/loki/api/v1/push,label.qa=k6 /dist/$TEST.js
# command: run --out influxdb=http://localhost:8086/k6 /dist/$TEST.js
# command: run --out influxdb=http://localhost:8086/k6 --log-output=loki=http://localhost:3100/loki/api/v1/push,label.qa=k6 --env SCENARIOS=$SCENARIOS /dist/$TEST.js
# command: run --out influxdb=http://localhost:8086/k6 --log-output=file=/logs/test-$LOG_FILE.log --env SCENARIOS=$SCENARIOS /dist/$TEST.js
command: run --out influxdb=http://localhost:8086/k6 --log-output=file=/logs/test-$LOG_FILE.log --env SCENARIOS=$SCENARIOS --quiet /dist/$TEST.js
volumes:
- build:/dist
- logs:/logs
depends_on:
- build
network_mode: host
ports:
- "5665:5665"
promtail:
image: grafana/promtail:2.8.2
command: -config.file=/etc/promtail/local-config.yaml
volumes:
- ./logs/config/promtail:/etc/promtail
- logs:/logs
network_mode: host
volumes:
build:
node_cache:
logs: