Traefik v3.4 : not running

Hello,

This is my docker-compose.yaml

networks:

network:

driver: bridge

attachable: true

services:

traefik:

image: "traefik:v3.4"

container_name: traefik_router

restart: unless-stopped

security_opt:

  - no-new-privileges:true

networks:

  - network

command:

  - "--configfile= ./traefik/traefik.yaml"

ports:

  - "80:80"

  - "443:443"

  - "8080:8080"

volumes:

  - "/var/run/docker.sock:/var/run/docker.sock:ro"

  - "./apache-php/certs:/certs:ro"

My traefik.yaml

http:

routers:

dashboard:

  rule: Host(\`traefik.myDomain.fr\`)

  service: api@internal

  entryPoints:

    - webapi

api:

dashboard: true

insecure: true

entryPoints:

web:

address: ":80"

websecure:

address: ":443"

webapi:

address: ":8080"

providers:

file:

filename: ./config.yaml

watch: true

docker:

exposedByDefault: false

My config.yaml

http:

services:

symfony:

  loadBalancer:

    servers:

      - url: "symfony_url:9083"

front:

  loadBalancer:

    servers:

      - url: "front_url:81"

routers:

symfony-router:

  entryPoints:

    - web

  rule: "Host(\`symfony_url\`)"

  service: symfony-service

front-router:

  entryPoints:

    - web

  rule: "Host(\`front_url\`)"

  service: front-service       

Nothing working, do you have an idea?

Use 3 backticks before and after code/config to make it more readable and preserve spacing, which is important in yaml.

I installed other config, it’s works now.