2021-02-09 09:16:52 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
environment:
|
2021-02-10 09:12:42 +00:00
|
|
|
- TZ={{ TZ }}
|
2021-02-09 09:16:52 +00:00
|
|
|
- GF_DATABASE_URL=postgres://grafana:grafana@db/grafana
|
|
|
|
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
|
|
|
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
2021-02-14 12:19:51 +00:00
|
|
|
- GF_SERVER_ROOT_URL=https://grafana.jakehoward.tech
|
|
|
|
- GF_SERVER_ENABLE_GZIP=true
|
|
|
|
|
|
|
|
- GF_SMTP_ENABLED=true
|
|
|
|
- GF_SMTP_HOST=smtp.fastmail.com:465
|
2021-02-14 12:29:14 +00:00
|
|
|
- GF_SMTP_USER={{ grafana_smtp_user }}
|
2021-02-14 12:19:51 +00:00
|
|
|
- GF_SMTP_PASSWORD={{ grafana_smtp_password }}
|
2021-02-14 12:29:14 +00:00
|
|
|
- GF_SMTP_FROM_ADDRESS={{ grafana_from_email }}
|
2021-02-14 12:19:51 +00:00
|
|
|
- GF_SMTP_FROM_NAME=grafana
|
2021-02-09 09:16:52 +00:00
|
|
|
volumes:
|
2021-02-14 11:33:46 +00:00
|
|
|
- "{{ app_data_dir }}/grafana:/var/lib/grafana"
|
2021-03-04 14:39:40 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- grafana
|
2021-02-09 09:16:52 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2021-03-27 18:42:06 +00:00
|
|
|
- "{{ private_ip }}:3000:3000"
|
2021-02-09 09:16:52 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- renderer
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2021-02-14 11:33:46 +00:00
|
|
|
- /mnt/tank/dbs/postgres/grafana/:/var/lib/postgresql/data
|
2021-02-09 09:16:52 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=grafana
|
|
|
|
- POSTGRES_USER=grafana
|
|
|
|
|
|
|
|
renderer:
|
|
|
|
image: grafana/grafana-image-renderer:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2021-02-10 09:12:42 +00:00
|
|
|
- BROWSER_TZ={{ TZ }}
|
2021-03-04 14:39:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
grafana:
|
|
|
|
external: true
|