如何修复此错误“撰写文件'./docker-compose.yml'无效,因为:services.app的不支持的配置选项:'mongo'”

时间:2019-06-25 15:48:26

标签: docker-compose

当我编写docker文件时,出现了这样的错误 “撰写文件'./docker-compose.yml'无效,因为: services.app的不受支持的配置选项:'mongo'“

version: '3' services: app: container_name: docker-node-mongo restart: always build: . ports: - '80:3000' links: - mongo mongo: container_name: mongo image: mongo ports: - '27017:27017'

错误:“撰写文件'./docker-compose.yml'无效,因为: services.app的不受支持的配置选项:'mongo'“

0 个答案:

没有答案