我遇到以下错误:
yaml.scanner.ScannerError:“ ./ docker-compose.yml”第12行第14列中不允许映射值
我的docker撰写文件:
version: '2'
services:
mongodb:
image: mongo
ports:
- "27017:27017"
volumes:
- ./mongodb/mongodata:/data/db
command: mongod --auth
siteacess:
build: .
context: ./siteaccess/
enviroment:
- MONGO_DB_HOST=mongo
- MONGO_PORT=27017
- MONGO_DB=fad
- MONGO_DB_USER=user
- MONGO_DB_PASS=pass
ports:
- "5000:5000"
links:
- mongodb