Unable to authenticate user [kibana_system]

Thanks for all that u provided

But i follow this active and popular repo (GitHub - deviantony/docker-elk: The Elastic stack (ELK) powered by Docker and Compose.)
and Got error in

root@Testing:~/ELK/docker-elk# docker-compose up setup
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.setup: 'profiles'
root@Testing:~/ELK/docker-elk# docker stack deploy -c docker-compose.yml elk
services.setup Additional property profiles is not allowed

And I didnt make any changes in docker-compose.yml file

 # '--profile=setup' CLI flag to Compose commands, or "up" the service by name
  # such as 'docker compose up setup'.
  setup:
    profiles:
      - setup
    build:
      context: setup/
      args:
        ELASTIC_VERSION: ${ELASTIC_VERSION}
    init: true

And if i follow this link Getting started with the Elastic Stack and Docker-Compose | Elastic Blog
i got error and follow same procedure which showing in above link

root@Testing:~/ELK/ELK-B# docker stack deploy -c docker-compose.yml elk

Compose file contains unsupported options:

mem_limit: Set resource limits using deploy.resources

root@Testing:~/ELK/ELK-B# docker-compose up -d

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.es01: 'mem_limit'
Unsupported config option for services.kibana: 'mem_limit'
services.logstash01.depends_on contains an invalid type, it should be an array
services.metricbeat01.depends_on contains an invalid type, it should be an array
services.filebeat01.depends_on contains an invalid type, it should be an array
services.kibana.depends_on contains an invalid type, it should be an array
services.es01.depends_on contains an invalid type, it should be an array

root@Testing:~/ELK/ELK-B# docker-compose version

docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.8.10
OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020

And Im using ubuntu 18.04

16 GB	8VCPU	240 GB HDD

Im executing using docker stack deploy NOT docker-compose up