docker-compose.yml 613 B

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