-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-influxdb.yaml
53 lines (52 loc) · 1.65 KB
/
docker-compose-influxdb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This is a sample compose file for deploying the zettelkasten-exporter
# using an InfluxDB storage.
volumes:
influxdb-data: {}
influxdb-config: {}
grafana-data: {}
services:
grafana:
image: grafana/grafana
restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafan
ports:
- 3000:3000
influxdb:
image: influxdb:2
restart: unless-stopped
environment:
# We opt for an automated setup of InfluxDB for simplicity. It's
# strongly recommended to change those credentials or doing a
# manual InfluxDB setup
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: default
DOCKER_INFLUXDB_INIT_BUCKET: zettelkasten
# In your own setup you'll probably want to specify a longer
# retention period.
DOCKER_INFLUXDB_INIT_RETENTION: 1w
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: demo-auth-token
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
ports:
- 8086:8086
zettelkasten-exporter:
image: ghcr.io/luissimas/zettelkasten-exporter:latest
restart: unless-stopped
depends_on:
- influxdb
environment:
LOG_LEVEL: INFO
# Here we use a local directory for simplicity, but check out the
# README to see how to configure different sources such as git repositories.
ZETTELKASTEN_DIRECTORY: /sample
COLLECTION_INTERVAL: 10s
INFLUXDB_TOKEN: demo-auth-token
INFLUXDB_URL: http://influxdb:8086
INFLUXDB_ORG: default
INFLUXDB_BUCKET: zettelkasten
volumes:
- ./sample:/sample