-
Notifications
You must be signed in to change notification settings - Fork 68
/
docker-compose.perf-tests.yml
98 lines (94 loc) · 2.28 KB
/
docker-compose.perf-tests.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3'
services:
gql-schema-registry-db:
image: mysql:8.2
command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
environment:
SERVICE_3306_NAME: gql-schema-registry-db
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: schema_registry
ports:
- 6000:3306
volumes:
- gql-schema-registry-db-volume:/var/lib/mysql
healthcheck:
test:
['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'healthcheck']
timeout: 5s
retries: 10
networks:
gql-schema:
aliases:
- 'gql-schema-registry-db'
gql-schema-registry:
build:
context: .
dockerfile: dev.Dockerfile
command: ./node_modules/.bin/ts-node src/schema-registry.ts
ports:
- 6001:3000
- 6002:5850
environment:
- ENV_ID=dev
- SERVICE_5850_IGNORE=true
- WITH_WEBPACK=${WITH_WEBPACK-1}
- SERVICE_NAME=schema-registry
- SERVICE_3000_NAME=schema-registry
- DB_SCHEMA_REGISTRY=gql-schema-registry-db
- NODE_ENV=production
volumes:
- .:/app/
restart: always
depends_on:
- gql-schema-registry-redis
- gql-schema-registry-db
networks:
gql-schema:
aliases:
- 'gql-schema-registry'
gql-schema-registry-redis:
image: redis:6-alpine
ports:
- 6004:6379
environment:
SERVICE_NAME: 'gql-schema-registry-redis'
networks:
gql-schema:
aliases:
- 'gql-schema-registry-redis'
k6:
image: loadimpact/k6:latest
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
networks:
- gql-schema
ports:
- '6565:6565'
volumes:
- ./test/perf:/scripts
influxdb:
image: influxdb:1.8
ports:
- '8086:8086'
environment:
- INFLUXDB_DB=k6
networks:
gql-schema:
aliases:
- 'influxdb'
grafana:
image: grafana/grafana:latest
networks:
- gql-schema
ports:
- '8087:3000'
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./test/perf/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
networks:
gql-schema:
volumes:
gql-schema-registry-db-volume: