1
resposta

Erro ao executar o comando docker-compose up

Olá, estou recebendo este erro ao executar o comand docker-compose up:

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

Meu arquivo yml:

version: "3.9"
services:
  mongodb:
    image: mongo:4.4.6
    container_name: meu-mongo
    networks:
      - compose-bridge

  alurabooks:
    image: aluradocker/alura-books:1.0
    container_name: alurabooks
    networks:
      - compose-bridge
    ports:
      - 3000:3000

networks:
  compose-bridge
    driver: bridge
1 resposta

Oi Renan acredito que você esteja esquecendo dos ":" no compose-bridge

Tente assim

networks:
  compose-bridge**:**
    driver: bridge