forked from yo8192/octo2influx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
53 lines (49 loc) · 1.31 KB
/
docker-compose.example.yml
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
version: '2'
services:
influx:
image: "influxdb:2.7"
restart: always
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
volumes:
- influxdb2data:/var/lib/influxdb2
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_USERNAME=admin
#- DOCKER_INFLUXDB_INIT_PASSWORD=
- DOCKER_INFLUXDB_INIT_ORG=octo2influx
- DOCKER_INFLUXDB_INIT_BUCKET=octo2influx/autogen
- DOCKER_INFLUXDB_INIT_RETENTION=80w
#- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=
grafana:
image: "grafana/grafana"
restart: always
ports:
- "3000:3000"
volumes:
- grafanadata:/var/lib/grafana
environment:
#- GF_SECURITY_ADMIN_PASSWORD=
- GF_AUTH_ANONYMOUS_ENABLED=true
# Use European dates DD/MM, instead of the default US MM/DD
# Used by graph and other places where we only show small intervals
- GF_DATE_FORMATS_INTERVAL_HOUR=DD/MM HH:mm
- GF_DATE_FORMATS_INTERVAL_DAY=DD/MM
octo2influx:
build:
context: ./src
image: "octo2influx:latest"
restart: always
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
volumes:
- "./config.yaml:/etc/octo2influx/config.yaml"
environment:
FREQ: "1h"