Non valide erreur de type dans le Panneau de Composer

Je suis confronté à une erreur dans le Panneau Composition. La composition du fichier est

version: '2'

services:
  api:
    build:
      context: .
      dockerfile: webapi/dockerfile
    ports:
       - 210
  web:
    build:
      context: .
      dockerfile: app/dockerfile
    ports:
      - 80
  lbapi:
    image: dockercloud/haproxy
    links:
       – api
    ports:
       – 8080:210
  lbweb:
    image: dockercloud/haproxy
    links:
       – web
    ports:
       – 80:80

L'erreur lors de l'exécution de docker-compose up est:

ERROR: The Compose file '.\docker-compose.yml' is invalid because:
services.lbapi.ports contains an invalid type, it should be an array
services.lbweb.ports contains an invalid type, it should be an array
services.lbapi.links contains an invalid type, it should be an array
services.lbweb.links contains an invalid type, it should be an array

S'il vous plaît aider.

  • docker-composition de la version 1.8.0-rc1, construire 9bf6bc6
  • docker-py version: 1.8.1
  • Disponible version: 2.7.11
  • Version d'OpenSSL: OpenSSL 1.0.2 d 9 Juil 2015

OriginalL'auteur Mayank | 2016-06-22