当我编写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'“