How to correct start traefik with Dashboard

Hi,
I'm new to traefik. Sorry for simple question
I'm running v3.4 of traefik as CustomApp on TrueNas Scale 24.10.
I thought that will be sufficient to create section in traefik.yaml:
api:
dashboard: true
insecure: true
without commands --api-dashboard=true and --api.insecure=true in docker-compose file.

But without changing of docker-compose dashboard didn't start. Port 8080 wasn't opened.
I've analysed Traefik Doc and many configuration samples. I've did also many tries and for me dashboard only starts with command parameters in docker-compose.

My question is Could this be behaviour of TrueNas environment or command parameter must be in docker-compose?
Mirek

It seems Traefik does not recognize your traefik.yaml file. The file is probably in the wrong place (doc) or has the wrong permissions.

Thank you for answer. :slight_smile:
I understand that settings "api:dashboard to true" should work independently in both places.

traefik.yaml is in the same dir where dynamic_conf.yaml is. And traefik watches for changes in it.
traefik.yaml specifies dynamic_conf.yaml file name

from traefik shell:

/ # ls -l /config
total 13
-rw-r--r--    1 root     root          2435 Mar  2 22:43 dynamic_conf.yaml
-rw-rw-rw-    1 root     root          1021 Mar  2 19:42 traefik.yaml

Ok.
Generally now is working. I've asked to know for future.
This my first deploying of traefik in very simple small business network. Using of traefik wasn't necessary but I've found out how simple and automatic are handled Let's Encrypt certificates.

Mirek