about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-11 12:23:01 +0200
committerEmile <hanemile@protonmail.com>2019-10-11 12:23:01 +0200
commit5e07a0a0df66baecf7fc58261034b598d44d2d2b (patch)
treebe1cd1c5403e7d959223cae13c5ef79318c39f56
parent11e00a003f0da3a02ed2652d0db5f0d43cbbc08e (diff)
grafana env → env file
-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: