about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 0514cbe..e3ecaa7 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -120,9 +120,11 @@ services:
         volumes:
             - "grafana_data:/var/lib/grafana"
             - "./grafana.ini:/etc/grafana/grafana.ini"
-        environment:
-            - "GF_SERVER_ROOT_URL=http://grafana.docker.localhost:3000"
-            - "GF_SECURITY_ADMIN_PASSWORD=secret"
+        env_file:
+            # grafana.env:
+            # GF_SERVER_ROOT_URL=http://grafana.docker.localhost:3000
+            # GF_SECURITY_ADMIN_PASSWORD=<grafana admin password>
+            - "/grafana.env"
         ports:
             - "3000:3000"
         labels: