2016-03-26 08:34:17 +08:00
|
|
|
grafana:
|
2016-12-07 09:03:31 +08:00
|
|
|
image: grafana/grafana
|
2016-03-26 08:34:17 +08:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2016-12-07 09:10:46 +08:00
|
|
|
volumes:
|
|
|
|
- ./data:/var/lib/grafana
|
2016-03-26 08:34:17 +08:00
|
|
|
environment:
|
2017-03-21 13:31:43 +08:00
|
|
|
- GF_SERVER_ROOT_URL=http://grafana.example.com:3000/
|
2016-03-26 08:34:17 +08:00
|
|
|
- GF_SECURITY_ADMIN_USER=admin
|
2016-03-26 15:46:59 +08:00
|
|
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
2017-03-21 13:31:43 +08:00
|
|
|
- GF_SMTP_ENABLED=true
|
|
|
|
- GF_SMTP_HOST=smtp.gmail.com:587
|
|
|
|
- GF_SMTP_USER=grafana@example.com
|
|
|
|
- GF_SMTP_FROM_ADDRESS=grafana@example.com
|
|
|
|
- GF_SMTP_PASSWORD=******
|
2016-03-26 08:34:17 +08:00
|
|
|
restart: always
|