-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 951 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 951 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
40
41
42
43
version: "3.9"
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
depends_on:
- cadvisor
cadvisor: # Taken from https://prometheus.io/docs/guides/cadvisor/
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
depends_on:
- snake-service
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
depends_on:
- prometheus
snake-service:
build:
context: .
dockerfile: Dockerfile
image: snake-service
container_name: snake-service
ports:
- 50051:50051