Error [Manticore::ResolutionFailure] elasticsearch: Name or service not known"} at docker-compose

I think you need to add the following to elasticsearch and kibana as well:

    networks:
      - elk