72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
|
version: "3.3"
|
||
|
|
||
|
services:
|
||
|
nginx:
|
||
|
image: nginx:1.23.2
|
||
|
networks:
|
||
|
- iot
|
||
|
volumes:
|
||
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
- ./nginx/mime.types:/etc/nginx/conf/mime.types:ro
|
||
|
- ./nginx/proxy.conf:/etc/nginx/proxy.conf:ro
|
||
|
- ./nginx/fastcgi.conf:/etc/nginx/fastcgi.conf:ro
|
||
|
- ./nginx/logs/:/etc/nginx/logs/
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
|
||
|
mosquitto:
|
||
|
image: eclipse-mosquitto:latest
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "1883:1883"
|
||
|
- "9001:9001"
|
||
|
networks:
|
||
|
- iot
|
||
|
volumes:
|
||
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
|
||
|
|
||
|
influxdb:
|
||
|
image: influxdb:1.8
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "8086:8086"
|
||
|
networks:
|
||
|
- iot
|
||
|
volumes:
|
||
|
- influxdb-data:/var/lib/influxdb
|
||
|
|
||
|
telegraf:
|
||
|
user: root
|
||
|
image: telegraf
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- ./telegraf.conf:/etc/telegraf/telegraf.conf
|
||
|
depends_on:
|
||
|
- mosquitto
|
||
|
- influxdb
|
||
|
networks:
|
||
|
- iot
|
||
|
|
||
|
grafana:
|
||
|
image: grafana/grafana
|
||
|
restart: always
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
networks:
|
||
|
- iot
|
||
|
volumes:
|
||
|
- grafana-data:/var/lib/grafana
|
||
|
depends_on:
|
||
|
- influxdb
|
||
|
environment:
|
||
|
- GF_INSTALL_PLUGINS=volkovlabs-image-panel
|
||
|
- GF_PANELS_DISABLE_SANITIZE_HTML=true
|
||
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
||
|
networks:
|
||
|
iot:
|
||
|
|
||
|
volumes:
|
||
|
influxdb-data:
|
||
|
grafana-data:
|
||
|
|