first commit
This commit is contained in:
57
docker-compose.yml
Normal file
57
docker-compose.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
services:
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto:2
|
||||
container_name: mosquitto-mqtt
|
||||
restart: unless-stopped
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- ./config:/mosquitto/config:rw
|
||||
- ./data:/mosquitto/data
|
||||
- ./log:/mosquitto/log
|
||||
networks:
|
||||
- mqtt-network
|
||||
# Healthcheck: beim mosquitto-Image fehlen oft Clients & nc.
|
||||
# Entweder weglassen oder separaten Sidecar-Check verwenden.
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "test -f /mosquitto/config/mosquitto.conf"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 3
|
||||
# start_period: 10s
|
||||
|
||||
mqttui:
|
||||
image: terdia07/mqttui:latest
|
||||
container_name: mqttui
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- DEBUG=False
|
||||
- HOST=0.0.0.0
|
||||
- PORT=5000
|
||||
- MQTT_BROKER=mosquitto
|
||||
- MQTT_PORT=1883
|
||||
- MQTT_USERNAME=${MQTT_PANEL_USERNAME}
|
||||
- MQTT_PASSWORD=${MQTT_PANEL_PASSWORD}
|
||||
- MQTT_KEEPALIVE=60
|
||||
- MQTT_VERSION=3.1.1
|
||||
- SECRET_KEY=${SECRET_KEY}
|
||||
- LOG_LEVEL=INFO
|
||||
- MQTT_TOPICS=#
|
||||
- DB_ENABLED=True
|
||||
- DB_PATH=/app/data/mqtt_messages.db
|
||||
- DB_MAX_MESSAGES=10000
|
||||
- DB_CLEANUP_DAYS=30
|
||||
volumes:
|
||||
- ./mqttui-data:/app/data
|
||||
networks:
|
||||
- mqtt-network
|
||||
depends_on:
|
||||
- mosquitto
|
||||
|
||||
networks:
|
||||
mqtt-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user