我正在尝试设置一个docker以运行mysql Mosquitto和red节点,但始终收到不受支持的配置选项错误。
Services:
mysql:
image: mysql
container_name: mysql
restart: always
ports:
- “6603:3306”
Environment:
MYSQL_ROOT_PASSWORD: “abcd1234”
volumes:
- mysql-data
node-red:
image: nodered/node-red:latest
restart: always
container_name: nodered
environment:
-TZ=Europe/London
depends_on:
- mysql
ports:
- “1880:1880”
links:
- mysql:mysql
- mosquitto:mosquitto
volumes:
- node-red-data
mosquitto:
image: eclipse-mosquitto
hostname: mosquitto
container_name: mosquitto
restart: always
ports:
- "1883:1883"
volumes:
mysql-data:
node-red-data:
关于为什么我会收到这些错误的任何想法?
Unsupported config option for Services: 'mosquitto'
Unsupported config option for volumes: 'mysql-data'
再次感谢您的帮助!