chassis-agent/docker-compose-metrics-serv...

34 lines
841 B
YAML
Raw Normal View History

2023-07-13 11:41:15 +08:00
version: "3"
services:
prometheus:
image: prom/prometheus:latest
container_name: 'prometheus'
hostname: 'prometheus'
restart: always
volumes:
- ./metrics_server/prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9193:9090"
networks:
chassis_agent_metrics_server:
grafana:
image: grafana/grafana:latest
container_name: 'grafana'
hostname: 'grafana'
restart: always
ports:
- "3100:3000"
volumes:
- ./metrics_server/grafana_conf/provisioning:/etc/grafana/provisioning
# - ./metrics/grafana_conf/dashboards:/var/lib/grafana/dashboards
- ./metrics_server/grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini
networks:
chassis_agent_metrics_server:
networks:
chassis_agent_metrics_server:
driver: bridge