-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (35 loc) · 848 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (35 loc) · 848 Bytes
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
version: '3.7'
services:
mock:
image: chrispsheehan/example-mock:6d94d1
platform: linux/x86_64
container_name: mock
volumes:
- ./state/state.json:/state.json
ports:
- "8080:8080"
environment:
MOCK_REFERENCE: USER_API
healthcheck:
test: "curl --fail http://localhost:8080/health || exit 1"
retries: 5
timeout: 2s
networks:
- mockservice
k6-runner:
depends_on:
mock:
condition: service_healthys
image: loadimpact/k6
platform: linux/x86_64
container_name: k6-runner
volumes:
- ./dist:/dist
command: run /dist/tests.js --config /dist/options/smoke.json --http-debug
environment:
- APP_DOMAIN=http://mock:8080
networks:
- mockservice
networks:
mockservice:
name: mockservice