2022-03-22 14:14:32 +01:00
|
|
|
---
|
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
grafana:
|
2022-11-04 12:18:12 +01:00
|
|
|
image: docker.io/grafana/grafana:9.2.2
|
2022-03-22 14:14:32 +01:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:3500:3000
|
2022-09-09 12:22:24 +02:00
|
|
|
mem_limit: 128m
|
2022-03-22 14:14:32 +01:00
|
|
|
volumes:
|
2022-09-09 11:32:18 +02:00
|
|
|
- "grafana_data:/var/lib/grafana"
|
2022-03-22 14:14:32 +01:00
|
|
|
environment:
|
|
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_NAME=viewer_org
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
|
|
|
|
- GF_AUTH_BASIC_ENABLED=true
|
|
|
|
# - GF_AUTH_DISABLE_LOGIN_FORM=false
|
|
|
|
- GF_DEFAULT_INSTANCE_NAME=nebula
|
|
|
|
- GF_SERVER_DOMAIN=grafana.dotya.ml
|
|
|
|
- GF_ROOT_URL=/
|
|
|
|
- GF_SECURITY_COOKIE_SECURE=true
|
|
|
|
- GF_ANALYTICS_REPORTING_ENABLED=false
|
|
|
|
- GF_SECURITY_ADMIN_PASSWORD=$GF_ADMIN_PASSWORD
|
|
|
|
- GF_ALLOWED_ORIGINS="https://*.dotya.ml"
|
2022-09-09 11:33:57 +02:00
|
|
|
healthcheck:
|
|
|
|
test: "/usr/bin/wget -q -Y off http://localhost:3000/api/health -O /dev/null > /dev/null 2>&1"
|
|
|
|
interval: 10s
|
|
|
|
retries: 20
|
2022-03-22 14:14:32 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
grafana_data:
|
2022-09-09 11:32:55 +02:00
|
|
|
...
|