-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
45 lines (39 loc) · 1.08 KB
/
docker-compose.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
---
version: '3.7'
services:
keenetic-grafana-monitoring:
build: .
container_name: keenetic-grafana-monitoring
# environment:
# - TZ=Europe/Kiev
volumes:
- ./config/config.ini:/home/config/config.ini:ro
- ./config/metrics.json:/home/config/metrics.json:ro
restart: always
# Influx 2.x
influxdb:
image: 'influxdb:2.1'
volumes:
- ./_data/influxdb:/var/lib/influxdb
ports:
- 8086:8086
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_ORG=keenetic
- DOCKER_INFLUXDB_INIT_BUCKET=keenetic
- DOCKER_INFLUXDB_INIT_RETENTION=52w
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=admin_token
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=password
# Influx 1.x
# influxdb:
# image: 'influxdb:1.8.1'
# volumes:
# - ./_data/influxdb:/var/lib/influxdb
# ports:
# - 8086:8086
# environment:
# - INFLUXDB_DB=db0
# - INFLUXDB_HTTP_AUTH_ENABLED=true
# - INFLUXDB_ADMIN_USER=admin
# - INFLUXDB_ADMIN_PASSWORD=password