4
0

compose.yaml 598 B

12345678910111213141516171819202122232425
  1. services:
  2. prometheus:
  3. image: prom/prometheus
  4. container_name: prometheus
  5. command:
  6. - '--config.file=/etc/prometheus/prometheus.yml'
  7. ports:
  8. - 9090:9090
  9. restart: unless-stopped
  10. volumes:
  11. - ./prometheus:/etc/prometheus
  12. - prom_data:/prometheus
  13. grafana:
  14. image: grafana/grafana
  15. container_name: grafana
  16. ports:
  17. - 3000:3000
  18. restart: unless-stopped
  19. environment:
  20. - GF_SECURITY_ADMIN_USER=admin
  21. - GF_SECURITY_ADMIN_PASSWORD=grafana
  22. volumes:
  23. - ./grafana:/etc/grafana/provisioning/datasources
  24. volumes:
  25. prom_data: