-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.8'
services:
infuxdb-allnet-connector:
image: infuxdb-allnet-connector
build:
context: .
dockerfile: Dockerfile
container_name: infuxdb-allnet-connector
restart: unless-stopped
ports:
- 8080:3000
environment:
- TZ=Europe/Berlin
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=org
- INFLUXDB_BUCKET=allnet
depends_on:
- influxdb
influxdb:
image: influxdb:latest
container_name: influxdb
restart: unless-stopped
ports:
- 8086:8086
environment:
- TZ=Europe/Berlin
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=org
- DOCKER_INFLUXDB_INIT_BUCKET=allnet
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
volumes:
- ./influxdb/data:/var/lib/influxdb2
- ./influxdb/config:/etc/influxdb2
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
ports:
- 3000:3000
environment:
- TZ=Europe/Berlin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
- GF_SECURITY_ALLOW_EMBEDDING=true
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
volumes:
- ./grafana/storage:/var/lib/grafana
- ./grafana-provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana-provisioning/dashboards-prov:/etc/grafana/provisioning/dashboards
- ./grafana-provisioning/dashboards:/var/lib/grafana/dashboards