1

I am getting the following error:

yaml.scanner.ScannerError: mapping values are not allowed here in "./docker-compose.yml", line 12, column 14

my docker compose file:

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
mbuechmann
  • 5,413
  • 5
  • 27
  • 40
  • may be this helps : https://stackoverflow.com/questions/39077526/docker-compose-file-has-yaml-scanner-scannererror – André Nov 21 '18 at 09:34

0 Answers0