-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.sample.yaml
44 lines (40 loc) · 1.05 KB
/
docker-compose.sample.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
version: "3.4"
services:
samples-webapi:
container_name: loadshedding-samples-webapi
image: loadshedding-samples-webapi
ports:
- "5261:5261"
environment:
- MongoConnectionString=mongodb://mongo:27017/loadshedding
build:
context: .
dockerfile: docker/Sample.Dockerfile
depends_on:
- mongo
prometheus:
image: prom/prometheus:v2.42.0
container_name: loadshedding-prometheus
ports:
- "9090:9090"
volumes:
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:9.3.6
container_name: loadshedding-grafana
ports:
- "3000:3000"
volumes:
- ./data/grafana/provisioning:/etc/grafana/provisioning
- ./data/grafana/dashboards:/var/lib/grafana/dashboards
depends_on:
- prometheus
mongo:
image: mongo:4.2.0
container_name: loadshedding-mongodb
ports:
- "27017:27017"