-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (42 loc) · 1.1 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
services:
python:
build:
context: ./python
restart: always
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
privileged: true
depends_on: [influxdb, mosquitto]
volumes:
- ./python:/usr/src/app
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- ./influxdb/data:/var/lib/influxdb
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ./influxdb/init:/docker-entrypoint-initdb.d
environment:
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME} # sourced from .env
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD} # sourced from .env
grafana:
restart: always
image: grafana/grafana:9.0.8
ports:
- 3000:3000
volumes:
- ./grafana/lib:/var/lib/grafana
- ./grafana/etc:/etc/grafana
- ./grafana/log:/var/log/grafana
mosquitto:
image: eclipse-mosquitto
restart: always
volumes:
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- 1883:1883
- 9001:9001