AllinOne
This commit is contained in:
parent
9b100825e7
commit
d7e2e1a512
14 changed files with 190 additions and 1 deletions
26
Pool/mqtt/docker-compose.yml
Normal file
26
Pool/mqtt/docker-compose.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
services:
|
||||
# mqtt5 eclipse-mosquitto
|
||||
mqtt5:
|
||||
image: eclipse-mosquitto
|
||||
container_name: mqtt5
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "mosquitto_pub -h localhost -p 1883 -u 'mqtt_user' -P 'mqtt_pw' -t 'healthcheck/ping' -n -q 0 >/dev/null 2>&1 || exit 1" ]
|
||||
|
||||
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