Difference between revisions of "Docker-compose.yml (Grafana)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
  
  
<pre>
+
version: "3.7"
+
  version: "3.7"
  
services:
+
  services:
  grafana:
+
    grafana:
        image: grafana/grafana
+
        image: grafana/grafana
        container_name: grafana
+
        container_name: grafana
        ports:
+
        ports:
                - "3000:3000"
+
                - "3000:3000"
        environment:
+
        environment:
          GF_SECURITY_ADMIN_PASSWORD: YOUR_PASSWORD
+
            GF_SECURITY_ADMIN_PASSWORD: YOUR_PASSWORD
        restart: always
+
        restart: always
        volumes:
+
        volumes:
          - ./grafana_storage:/var/lib/grafana
+
            - ./grafana_storage:/var/lib/grafana
  
volumes:
+
  volumes:
  grafana_storage:
+
    grafana_storage:
          driver: local
+
          driver: local
</pre>
 
  
  

Revision as of 09:26, 26 April 2020

Advertising: