-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.21 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
services:
mystorage:
build:
context: .
dockerfile: ./StorageSimulator/Dockerfile
ports:
- "1234:80"
container_name: "mystorage"
k6:
image: grafana/k6:latest
ports:
- "6565:6565"
volumes:
- ./examples:/scripts
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
depends_on:
- mystorage
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin # Change this password
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
limiterservice:
build:
context: .
dockerfile: ./LimiterService/Dockerfile
ports:
- "80"
deploy:
replicas: 1
nginx:
image: nginx
ports:
- "80:80" # Expose the port you want to use externally
depends_on:
- limiterservice
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf # Mount your Nginx configuration
volumes:
grafana_data:
driver: local