Bad gateway when using auth username and password

I am trying to create a reverse proxy server with traefik. When I am sending the request to my container traefik logs give me 502 bad gateway. I want to send request to port 55000 of my container.

This is my docker-compose.yml:

version: "3.3"

services:

  traefik:
    image: "traefik:v2.10"
    container_name: "traefik"
    command:
      #- "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      - "--log.level=DEBUG"
      - "--certificatesresolvers.myresolver.acme.httpchallenge=true"
      - "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
      #- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
      # - "--certificatesresolvers.myresolver.acme.email=admin"
      - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
    ports:
      - "80:80"
      - "443:443"
      - "8080:8080"
    volumes:
      - "letsencrypt:/letsencrypt"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

  wazuh.manager:
    image: wazuh/wazuh-manager:4.3.10
    hostname: wazuh.manager
    restart: always
    expose:
      # - "1514"
      # - "1515"
      # - "514/udp"
      - "55000"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.api-service.rule=Host(`abc.com`)"
      - "traefik.http.services.api-service.loadbalancer.server.port=55000"
      - "traefik.http.routers.api-service.entrypoints=websecure"
      - "traefik.http.routers.api-service.tls.certresolver=myresolver"

  volumes:
     letsencrypt:
   
   

when I am sending a request to curl -u <username>:<password> -k -X GET "https://abc.com/security/user/authenticate" it gives me bad gateway.

Please help me in resolving this issue.

Use a common Docker network, see simple Traefik example.