version: '3' services: iot-control: image: registry.persagy.com/ftp/iot-transfer:${tag} container_name: iot-transfer restart: always ports: # 服务暴露端口号,按环境调整 #8863 为服务端口, - 8863:8863 #8851为模拟iot-collect数据通讯的端口,同application.yml中配置的iot.server.collect.tcp_bind_port - 8851:8851 #8855为模拟iot-control数据通讯的端口,同application.yml中配置的iot.server.control.tcp_bind_port - 8855:8855 volumes: # 文件同级放config文件夹,文件夹下有 要包含application.yml等配置文件 - ./config/:/usr/persagy/iot-transfer/config/