mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
18 lines
483 B
YAML
18 lines
483 B
YAML
grafana:
|
|
image: grafana/grafana
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data:/var/lib/grafana
|
|
environment:
|
|
- GF_SERVER_ROOT_URL=http://grafana.example.com:3000/
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
|
- 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=******
|
|
- GF_USERS_ALLOW_SIGN_UP=false
|
|
restart: always
|