41 lines
762 B
YAML
41 lines
762 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
node_exporter:
|
|
image: prom/node-exporter
|
|
container_name: node_exporter
|
|
ports:
|
|
- 9100:9100
|
|
networks:
|
|
- my_network
|
|
|
|
prometheus:
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
command:
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
ports:
|
|
- 9090:9090
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
networks:
|
|
- my_network
|
|
depends_on:
|
|
- node_exporter
|
|
|
|
grafana:
|
|
image: grafana/grafana-oss
|
|
container_name: grafana
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- grafana-storage:/var/lib/grafana
|
|
volumes:
|
|
grafana-storage: {}
|
|
|
|
networks:
|
|
my_network:
|
|
driver: bridge
|