1 Star 0 Fork 160

guoguo/smart-mqtt

forked from smartboot/smart-mqtt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
三刀 提交于 2023-07-30 15:19 . 移除commons-collections4依赖
networks:
mqtt-network:
driver: bridge
services:
mqtt-broker:
container_name: smart-mqtt
hostname: mqtt-broker
image: smartboot/smart-mqtt:latest
networks:
mqtt-network: null
restart: always
security_opt:
- no-new-privileges:true
user: root:root
ports:
- 18083:18083
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
# mqtt-broker:
# container_name: bifromq
# hostname: mqtt-broker
# image: bifromq/bifromq:latest
# networks:
# mqtt-network: null
# restart: always
# security_opt:
# - no-new-privileges:true
# user: root:root
# logging:
# driver: "json-file"
# options:
# max-size: "100m"
# max-file: "1"
# mqtt-broker:
# container_name: emqx
# hostname: mqtt-broker
# image: emqx/emqx:5.0.24
# networks:
# mqtt-network: null
# restart: always
# security_opt:
# - no-new-privileges:true
# user: root:root
# logging:
# driver: "json-file"
# options:
# max-size: "100m"
# max-file: "1"
smart-mqtt-bench:
depends_on:
- mqtt-broker
image: smartboot/smart-mqtt-bench:latest
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: root:root
networks:
mqtt-network: null
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=0 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=1 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=2 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=0 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=2 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
version: '3.7'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/itwennet/smart-mqtt.git
git@gitee.com:itwennet/smart-mqtt.git
itwennet
smart-mqtt
smart-mqtt
master

搜索帮助