version: "3.9"
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=./data/prometheus"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- cadvisor
networks:
- meta
networks:
meta:
driver: bridge
ipam:
config:
- subnet: 172.99.0.0/16
-
Your Name authored9327b9a2