services: prometheus: image: prom/prometheus container_name: prometheus restart: always volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml - ./alert.rules.yml:/etc/prometheus/alert.rules.yml ports: - "9090:9090" command: - "--config.file=/etc/prometheus/prometheus.yml" node-exporter: image: prom/node-exporter container_name: node-exporter restart: always ports: - "9100:9100" grafana: image: grafana/grafana container_name: grafana restart: always ports: - "3000:3000" environment: - GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_PASSWORD=admin