-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcompose.yaml
More file actions
41 lines (36 loc) · 965 Bytes
/
Copy pathcompose.yaml
File metadata and controls
41 lines (36 loc) · 965 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
# https://compose-spec.io/
# https://github.com/compose-spec/compose-spec/blob/master/spec.md
services:
prometheus:
# https://hub.docker.com/r/prom/prometheus/tags
image: prom/prometheus:v3.10.0
container_name: prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- cadvisor
cadvisor:
# https://github.com/google/cadvisor/releases/
image: gcr.io/cadvisor/cadvisor:v0.55.1
container_name: cadvisor
command:
- --docker="unix:///var/run/docker.sock"
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
redis:
# https://hub.docker.com/_/redis
image: redis:7.4.8
container_name: redis
nginx:
# https://hub.docker.com/_/nginx
image: nginx:1.31.4
container_name: nginx