Anonymous Access not working with LDAP

Hello Team,

I’m using Grafana latest version v11.2.0, I have configured LDAP and now trying to enable anonymous access which isn’t enabled. Have configured everything by docker compose.
I have tried enable it in different ways like
1.Modified outside grafana.ini file.
2.Set environment in docker-compose.yml
3.Entered into container and changed the grafana.ini by manually.

Nothing has helped me to enable anonymous access. Could you please help me ?

My docker-compose.yml file

version: ‘3.8’

services:
grafana:
image: grafana/grafana
container_name: grafana
ports:
- “3000:3000”

volumes:
  - grafana-ldap-certs:/etc/grafana/certs
  - /opt/grafana/configuration/grafana/grafana.ini:/etc/grafana/grafana.ini
  - /opt/grafana/configuration/grafana/ldap.toml:/etc/grafana/ldap.toml
  - /opt/grafana/configuration/grafana/provisioning/:/etc/grafana/provisioning/
  - /opt/grafana/storage/grafana/:/var/lib/grafana

restart: unless-stopped

environment:
  - GF_ALERTING_ENABLED=false
  - GF_AUTH_LDAP_ENABLED=true
  - GF_AUTH_LDAP_CONFIG_FILE=/etc/grafana/ldap.toml
  - GF_AUTH_ANONYMOUS_ENABLED=true
  - GF_AUTH_ANONYMOUS_ORG_NAME="Main Org."
  - GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
  - GF_LOG_LEVEL=debug

volumes:
grafana-ldap-certs: