Custom configuration grafana.ini docker

Hello world,
I have installed grafana (to be used with influxdB source which is filled by HomeAssistant).
I would like to integrate iframe which is not possible with default settings. I have thus tried to change it with no success so far.
Looking at the documentation, I assumed my configuration would work :

    volumes:
      - '/opt/Docker/Grafana:/var/lib/grafana'
      - '/opt/Docker/Grafana/grafana2.ini:/etc/grafana/grafana2.ini'
    environment:
      - GF_PATHS_CONFIG=/etc/grafana/grafana2.ini

with :

# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
;allow_embedding = true

but it does not. When checking the config in the web UI is is still displayed false. Also, of course, using iframe with grafana embedded does not work :frowning_face:
How should one do ? should one do ?
My full docker-compose grafan part is :

 grafana:
    ports:
      - '3000:3000'
    container_name: grafana
    restart: unless-stopped
    volumes:
      - '/opt/Docker/Grafana:/var/lib/grafana'
      - '/opt/Docker/Grafana/grafana2.ini:/etc/grafana/grafana2.ini'
    environment:
      - GF_PATHS_CONFIG=/etc/grafana/grafana2.ini
    image: grafana/grafana
    network_mode: host
    environment:
      - TZ=Europe/Paris
    depends_on:
      - "influxdb"

I know the port statement here is useless with network being host, but it is a reminder of the port used

I have installed Gafana in February with latest image (vertion 6.7.1)

Can you please help me debug what’s wrong ?
Many thanks

I stil did not found a solution for this, any idea how to proceed ?

Hi @onishadow,
I try the same like you almost 2 years ago. I read documentations, but have not found an explanation I fully understand.
Did you meanwhile find out how to make the configuration to set allow_embedding = true?
If yes, could you put your code here as an example for me.

I found the answer here: