title: Docker Compose contains unsupported option: 'environment'
body: <p><strong>The following is my docker-compose.yml file:</strong></p>
  
  <pre><code>version: "3"
  services:
      coreapi:
          build:
              context: ./theapi
              dockerfile: Dockerfile
          ports:
              - "5000:5000"
      sqlserver:
          build:
              context: ./sqlserver
              environment: 
                  ACCEPT_EULA="Y"
                  SA_PASSWORD="Pwd12345!"
          ports:
              - "11433:1433"
  </code></pre>
  
  <p><strong>ERROR:</strong> </p>
  
  <blockquote>
    <p>ERROR: The Compose file '.\docker-compose.yml' is invalid because:
    services.sqlserver.build contains unsupported option: 'environment'</p>
  </blockquote>
  
  <p>I have tried using online formatter, I have tried removing double quotes, adding single quotes. Nothing seems to work.</p>