Spaces:
Running
Running
| services: # definisce servizi | |
| grafana: | |
| image: grafana/grafana-enterprise | |
| container_name: grafana | |
| restart: unless-stopped #se termina inaspettatamente, definisce quando fare restart (sempre ameno che non venga chiusa) | |
| ports: | |
| - '3000:3000' | |
| volumes: # dove salvare affinché sopravviva al container | |
| - grafana-storage:/var/lib/grafana | |
| environment: | |
| - GF_INSTALL_PLUGINS= #grafana-infinity-datasource # Install the Infinity plugin | |
| prometheus: | |
| image: prom/prometheus | |
| container_name: prometheus | |
| restart: unless-stopped | |
| ports: | |
| - '9090:9090' | |
| volumes: | |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | |
| volumes: | |
| grafana-storage: {} |