代码拉取完成,页面将自动刷新
version: "2"
services:
prometheus:
# admin/admin
image: prom/prometheus
container_name: prometheus
restart: always
ports:
- "9001:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/rules:/etc/prometheus/rules
- ./prometheus/target:/etc/prometheus/target
- ./prometheus/data:/prometheus
networks:
- prometheus
grafana:
# admin/admin
image: grafana/grafana
container_name: grafana
restart: always
ports:
- "9002:3000"
networks:
- prometheus
volumes:
- ./grafana/conf/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboard:/usr/share/grafana/dashboards
- ./grafana/plugins:/var/lib/grafana/plugins/
alertmanager:
# admin/admin
image: prom/alertmanager
container_name: alertmanager
restart: always
ports:
- "9003:9093"
networks:
- prometheus
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
networks:
prometheus:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。