You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
657 B
YAML
36 lines
657 B
YAML
# 网络设置
|
|
networks:
|
|
base2024-network:
|
|
name: base2024-network
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.222.0/24
|
|
gateway: 192.168.222.1
|
|
|
|
services:
|
|
|
|
|
|
# mqtt服务
|
|
mqtt:
|
|
container_name: mqtt
|
|
restart: always
|
|
image: registry.cn-hangzhou.aliyuncs.com/awl/emqx:5.6.1
|
|
ports:
|
|
- "1883:1883"
|
|
- "8083:8083"
|
|
# - "8084:8084"
|
|
# - "8883:8883"
|
|
- "18083:18083"
|
|
volumes:
|
|
- ./mqtt/configs/:/opt/emqx/data/configs/:rw
|
|
- ./mqtt/log/:/opt/emqx/log/:rw
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
privileged: true
|
|
networks:
|
|
- base2024-network
|
|
|
|
|
|
|