Add docker-compose
This commit is contained in:
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
rtl433:
|
||||||
|
restart: on-failure:5
|
||||||
|
container_name: 'rtl-sdr'
|
||||||
|
image: hertzg/rtl_433:latest
|
||||||
|
devices:
|
||||||
|
- '/dev/bus/usb'
|
||||||
|
command:
|
||||||
|
- '-Mtime:unix:usec:utc'
|
||||||
|
- '-Mbits'
|
||||||
|
- '-Mlevel'
|
||||||
|
- '-Mprotocol'
|
||||||
|
- '-Mstats:2:300'
|
||||||
|
- '-Fmqtt://mosquitto:1883,user=hass,pass=ZxQLzTvw7!3ij,retain=1,events=rtl_433/events'
|
||||||
|
|
||||||
|
mosquitto:
|
||||||
|
restart: on-failure:5
|
||||||
|
container_name: 'mqtt-server'
|
||||||
|
image: eclipse-mosquitto
|
||||||
|
volumes:
|
||||||
|
- ./mosquitto/config:/mosquitto/config
|
||||||
|
- ./mosquitto/data:/mosquitto/data
|
||||||
|
- ./mosquitto/log:/mosquitto/log
|
||||||
|
ports:
|
||||||
|
- 1883:1883
|
||||||
|
- 9001:9001
|
||||||
|
|
||||||
|
mqtt-explorer:
|
||||||
|
restart: on-failure:5
|
||||||
|
container_name: 'mqtt-explorer'
|
||||||
|
image: smeagolworms4/mqtt-explorer
|
||||||
|
volumes:
|
||||||
|
- ./explorer:/mqtt-explorer/config
|
||||||
|
ports:
|
||||||
|
- 4000:4000
|
||||||
Reference in New Issue
Block a user