Docker-Compose file has yaml.scanner.ScannerError

后端 未结 17 2117
情话喂你
情话喂你 2021-02-01 12:04

compose.yml file, which looks like this:

version: \'2\'
services:
  discovery-microservice:
    build: discovery-microservice
      context: /discov         


        
17条回答
  •  一个人的身影
    2021-02-01 12:54

    Bringing my answer because while I got the same error message, my solution was different.

    Original docker-compose.yml

    volumes: mongo:
    

    After trying all the ideas in this thread I just went to the docker-compose docks and realized that volumes should be structured like:

    volumes:
      mongo:
    

    That's it for anyone else running into this.

提交回复
热议问题