about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml1
-rw-r--r--grafana.ini9
2 files changed, 10 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 2f0cf27..0514cbe 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -119,6 +119,7 @@ services:
         container_name: "grafana"
         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"
diff --git a/grafana.ini b/grafana.ini
new file mode 100644
index 0000000..19d9327
--- /dev/null
+++ b/grafana.ini
@@ -0,0 +1,9 @@
+[auth.anonymous]
+# enable anonymous access
+enabled = true
+
+# specify organization name that should be used for unauthenticated users
+org_name = anonymous
+
+# specify role for unauthenticated users
+org_role = Viewer