-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
70 lines (70 loc) · 1.77 KB
/
docker-compose.yaml
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
version: '3.9'
networks:
default:
name: generic-http-benchmark-network
driver: bridge
services:
benchmark-target:
container_name: ${BENCHMARK_TARGET_DOCKER_CONTAINER_NAME}
image: ${BENCHMARK_TARGET_DOCKER_IMAGE}:latest
build: ${BENCHMARK_TARGET_DOCKER_BUILD_FOLDER}
restart: always # recover from crash
ports:
- '8080:8080'
env_file:
- ${BENCHMARK_TARGET_ENV_FILE}
deploy:
resources:
limits:
cpus: ${SERVICE_CONTAINER_CPU_LIMIT}
memory: ${SERVICE_CONTAINER_MEMORY_LIMIT}
gatling-runner:
container_name: gatling-runner
build: gatling/
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
links:
- benchmark-target
volumes:
- ./docker-cache/gatling-runner/.gradle:/usr/src/app/.gradle
- ./docker-cache/gatling-runner/build:/usr/src/app/build
- ./reports:/usr/src/app/build/reports
env_file:
- ${GATLING_RUNNER_ENV_FILE}
- config/gatling/default.env
deploy:
resources:
limits:
cpus: ${GATLING_RUNNER_CONTAINER_CPU_LIMIT}
memory: ${GATLING_RUNNER_CONTAINER_MEMORY_LIMIT}
# prometheus:
# container_name: prometheus
# image: prom/prometheus
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# links:
# - benchmark-target:${BENCHMARK_TARGET}
# ports:
# - '9090:9090'
# deploy:
# resources:
# limits:
# cpus: '0.25'
# memory: 256M
# grafana:
# container_name: grafana
# volumes:
# - ./docker-cache/grafana:/var/lib/grafana
# image: grafana/grafana
# links:
# - prometheus
# ports:
# - '3000:3000'
# deploy:
# resources:
# limits:
# cpus: '0.25'
# memory: 256M