Last active
September 26, 2020 12:49
-
-
Save y-ookuma/068c2523851417ab9d6d36f45461318f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
influxdb: | |
image: influxdb:latest | |
container_name: local-influxdb # grafanaからの接続用にコンテナ名を明示しておく | |
hostname: local-influxdb | |
ports: | |
- "8086:8086" | |
volumes: | |
- ./influxdb/data:/var/lib/influxdb | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- "3000:3000" | |
volumes: | |
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards | |
- ./grafana/datasources:/etc/grafana/provisioning/datasources | |
depends_on: | |
- influxdb | |
environment: | |
- GF_SERVER_ROOT_URL=http://localhost:3000 | |
- GF_SECURITY_ADMIN_PASSWORD=admin | |
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-worldmap-panel,natel-influx-admin-panel,ryantxu-annolist-panel,fatcloud-windrose-panel | |
- GF_SMTP_ENABLED=true | |
- GF_SMTP_HOST=smtp.gmail.com:465 | |
- GF_SMTP_USER=xxxxxxx@gmail.com | |
- GF_SMTP_PASSWORD=p@ssw@rd | |
- GF_SMTP_SKIP_VERIFY=true | |
- GF_SMTP_FROM_ADDRESS=xxxxxxx@gmail.com | |
- GF_SMTP_FROM_NAME=GrafanaAlert | |
- GF_PANELS_DISABLE_SANITIZE_HTML=true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment