forked from dalogax/backendDevTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (40 loc) · 1.11 KB
/
docker-compose.yaml
File metadata and controls
40 lines (40 loc) · 1.11 KB
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
version: '4.1'
services:
influxdb:
image: influxdb:1.8.2
ports:
- '8086:8086'
environment:
- INFLUXDB_DB=k6
grafana:
image: grafana/grafana:8.1.2
ports:
- '3000:3000'
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./shared/grafana:/etc/grafana/provisioning/
mock-server:
image: node:18-alpine
ports:
- '3001:3001'
working_dir: /app
volumes:
- ./mock-server:/app
- ./shared/simulado:/shared/simulado
command: sh -c "npm install && npm start"
environment:
- NODE_ENV=production
k6:
# Usando grafana/k6 -> version oficial de Grafana
image: grafana/k6:latest
ports:
- '6565:6565'
volumes:
- ./shared/k6:/scripts
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
extra_hosts:
- 'host.docker.internal:host-gateway'