yaml.scanner.ScannerError:“ ./ docker-compose.yml”第12行第14列中不允许使用映射值

时间:2018-10-12 15:28:18

标签: mongodb docker-compose

我遇到以下错误:

  

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

0 个答案:

没有答案