title: Version in “./docker-compose.yml” is unsupported. You might be seeing this error because you're using the wrong Compose file version
body: <p>Here's my docker-compose.yml file:</p>
  
  <pre><code>version: '3.7'
  services:
  
    database:
      image: mongo:3.6
      restart: always
      environment:
        - MONGO_INITDB_ROOT_USERNAME=root
        - MONGO_INITDB_ROOT_PASSWORD= 123456
      container_name: mongo-01-database-container
  networks:
    database-01:
      name: database-01-network
      driver: bridge
      ipam:
        driver: default
        config:
          - subnet: 172.24.0.0/16
  </code></pre>
  
  <pre><code>docker --version 
  Docker version 18.09.2, build 6247962
  </code></pre>
  
  <pre><code>docker-compose --version 
  docker-compose version 1.18.0, build 8dd22a9
  </code></pre>
  
  <p>What's wrong here? Shouldn't my docker-compose version support v3.1 of the docker-compose.yml specification?</p>