Docker Community Forums

Share and learn in the Docker community.

ERROR: yaml.parser.ParserError: while parsing a block mapping


(Umeraf) #1

version: ‘2’

services:
drupal:
image: drupal
ports:

  • “8080:80”
    volumes:
  • drupal-modules:/var/www/html/modules
  • drupal-profiles:/var/www/html/profiles
  • durpal-sites:/var/www/html/sites
  • drupal-themes:/var/www/html/themes

postgres:
image: postgres
enviroment:

  • POSTGRESS_PASSWORD=mypasswd
    volumes:
    drupal-modules:
    drupal-profiles:
    drupal-sites:
    drupal-themes:

ERROR: yaml.parser.ParserError: while parsing a block mapping
in “./docker-compose.yml”, line 2, column 1
expected , but found ‘’
in “./docker-compose.yml”, line 8, column 2