-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.43 KB
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
version: "3.9"
services:
# mqtt:
# image: eclipse-mosquitto:2.0
# container_name: mqtt
# ports:
# - "1883:1883"
# - "9001:9001" # websocket opzionale
# volumes:
# - ./mosquitto:/mosquitto
# restart: unless-stopped
influxdb:
image: influxdb:2.7
container_name: influxdb
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=adminadmin
- DOCKER_INFLUXDB_INIT_ORG=dipme
- DOCKER_INFLUXDB_INIT_BUCKET=iot-bucket
#- DOCKER_INFLUXDB_INIT_RETENTION=30d
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=admintoken123
volumes:
- ./influxdb-data:/var/lib/influxdb2
restart: unless-stopped
telegraf:
image: telegraf:1.30
container_name: telegraf
depends_on:
- influxdb
# - mqtt
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
environment:
- INFLUX_TOKEN=admintoken123
restart: unless-stopped
extra_hosts:
- "mqtt:193.205.92.88"
grafana:
image: grafana/grafana:10.4.2
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- ./grafana-data:/var/lib/grafana
- ./grafana-provisioning:/etc/grafana/provisioning
depends_on:
- influxdb
restart: unless-stopped