One traefik for multiple container

It seems a slight error in the portainerapps yml file made it not accesibble in http mode..
now http://192.168.1.181:9900 opens portainerapps

version: "3.9"
networks:
  t2_proxy:
    name: t2_proxy
    driver: bridge
    ipam:
      config:
       - subnet: 192.168.90.0/24

  default:
    driver: bridge

  socket-apps-proxy:  #this is another IP range that the main socket_proxy
    name: socket-apps-proxy
    driver: bridge
    ipam:
      config:
        - subnet: 192.168.101.0/24
  portainerapps:
    <<: *common-keys-core # See EXTENSION FIELDS at the top
    container_name: portainerapps
    image: portainer/portainer-ce:2.16.1
    # command: -H unix:///var/run/docker.sock # # Use Docker Socket Proxy instead for improved security
    command: -H tcp://socket-proxy:2375
             --log-level DEBUG
    networks:
      t2_proxy:
      socket-apps-proxy:
        ipv4_address: 192.168.101.5
    ports:
      #- "$portainerapps_PORT:9000"
      - 9900:9000
    volumes:
      # - /var/run/docker.sock:/var/run/docker.sock:ro # # Use Docker Socket Proxy instead for improved security
      - $DOCKERDIR/appdata/portainerapps/data:/data # Change to local directory if you want to save/transfer config locally
    environment:
      - TZ=$TZ
    labels:
      - "traefik.enable=true"
      ## HTTP Routers
      - "traefik.http.routers.portainerapps-rtr.entrypoints=https"
      - "traefik.http.routers.portainerapps-rtr.rule=Host(`portainerapps.$DOMAINNAME`)"
      - "traefik.http.routers.portainerapps-rtr.tls=true"
      ## Middlewares
      - "traefik.http.routers.portainerapps-rtr.middlewares=chain-no-auth@file"
      #- "traefik.http.routers.portainerapps-rtr.middlewares=chain-oauth@file"
      #- "traefik.http.routers.portainerapps-rtr.middlewares=middlewares-basic-auth@file"
      #- "traefik.http.routers.portainerapps-rtr.middlewares=chain-basic-auth@file"
      #- "traefik.http.routers.portainerapps-rtr.middlewares=chain-authelia@file"
      #- "traefik.http.routers.portainerapps-rtr.middlewares=chain-authentik@file"
      ## HTTP Services
      - "traefik.http.routers.portainerapps-rtr.service=portainerapps-svc"
      - "traefik.http.services.portainerapps-svc.loadbalancer.server.port=9000"