version: '3'
services:
  database:
    image: mongo:3
    ports:
      - "20202:27017"
  search:
    build:
      context: .
      dockerfile: Dockerfile-solr
    ports:
      - "21212:8983"
version: '2'
services:
  database:
    image: mongo:3
    ports:
      - "20202:27017"
  search:
    build:
      context: .
      dockerfile: Dockerfile-solr
    ports:
      - "21212:8983"

Downgrade docker compose version from 3 to 2 for supporting standard ubuntu version
Downgrade docker compose version from 3 to 2 for supporting standard ubuntu version