-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (41 loc) · 976 Bytes
/
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"
services:
python_app:
build: .
command: python src/air_quality_app/streaming.py
volumes:
- .:/app
privileged: true
devices:
- "/dev:/dev"
depends_on:
- influxdb
influxdb:
image: arm32v7/influxdb:latest
container_name: influxdb
restart: always
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_ADMIN_USER=influxdb
- INFLUXDB_ADMIN_PASSWORD=influxdb
- INFLUXDB_REPORTING_DISABLED=true
- DOCKER_INFLUXDB_INIT_RETENTION=52w
ports:
- "8086:8086"
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=grafana
- GF_SECURITY_ADMIN_PASSWORD=grafana
- GF_ANALYTICS_REPORTING_ENABLED=false
- GF_ANALYTICS_CHECK_FOR_UPDATES=false
volumes:
influxdb-storage:
grafana-storage: