services: prometheus: image: prom/prometheus:latest container_name: prometheus restart: always ports: - "9090:9090" volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml networks: - monitoring_net - caddy_net grafana: image: grafana/grafana:latest container_name: grafana restart: always ports: - "3000:3000" environment: - GF_SECURITY_ADMIN_PASSWORD=YOUR_PASSWORD - GE_SERVER_ROOT_URL=YOUR_URL depends_on: - prometheus networks: - monitoring_net node_exporter: image: prom/node-exporter:latest container_name: node-exporter restart: always ports: - "9100:9100" networks: - monitoring_net networks: monitoring_net: driver: bridge