.
This commit is contained in:
parent
c8ca14ad64
commit
674eb77f56
6 changed files with 47 additions and 0 deletions
23
mqtt/docker-compose.yml
Normal file
23
mqtt/docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
# mqtt5 eclipse-mosquitto
|
||||
mqtt5:
|
||||
image: eclipse-mosquitto
|
||||
container_name: mqtt5
|
||||
ports:
|
||||
- "1883:1883" #default mqtt port
|
||||
- "9001:9001" #default mqtt port for websockets
|
||||
volumes:
|
||||
- ./config:/mosquitto/config:rw
|
||||
- ./data:/mosquitto/data:rw
|
||||
- ./log:/mosquitto/log:rw
|
||||
restart: unless-stopped
|
||||
|
||||
# volumes for mapping data,config and log
|
||||
volumes:
|
||||
config:
|
||||
data:
|
||||
log:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: mqtt5-network
|
||||
Loading…
Add table
Add a link
Reference in a new issue