504 Gateway timeout Docker

Hi Team, started learning about Traefik and trying to set up it only my docker. I was able to setup and access the dashboard page via my custom domain. But I was not able to access the whoami simple-service webpage using my other domain.

Problem:

proxy_1  | time="2021-04-04T16:01:11Z" level=debug msg="'504 Gateway Timeout' caused by: dial tcp 172.23.0.2:80: i/o timeout"
proxy_1  | time="2021-04-04T16:01:11Z" level=debug msg="vulcand/oxy/forward/http: Round trip: http://172.23.0.2:80, code: 504, Length: 15, duration: 30.001622559s tls:version: 303, tls:resume:false, tls:csuite:cca8, tls:server:xyz.duckdns.org"

Docker-compose.yml
Traefik:

version: '3'
services:
  proxy:
    image: traefik:alpine
    restart: always
    networks:
      - traefik_net
    ports:
      - "80:80"
      - "8080:8080"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./traefik.toml:/etc/traefik/traefik.toml
      - ./acme:/etc/traefik/acme
    labels:
      - traefik.enable=true
      - traefik.port=8080
      - traefik.frontend.rule=Host:abc.duckdns.org
    environment:
     - DUCKDNS_TOKEN=d402XXXXX

networks:
  traefik_net:
    external:
      name: traefik_net

traefik.toml

debug = true

logLevel = "DEBUG"
defaultEntryPoints = ["https","http"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]
  [entryPoints.admin]
  address = ":8080"
    [entryPoints.admin.auth]
    [entryPoints.admin.auth.basic]
      users = [
        "pnalla:$apr1$LErPBtcU$f35.oFzXOPODzHz3WIXGr1"
      ]
[retry]

[api]
entryPoint = "admin"
dashboard = true

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "abc.duckdns.org"
watch = true
exposedByDefault = false

[acme]
email = "help@gmail.com"
entryPoint = "https"
storage = "/etc/traefik/acme/acme.json"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
onHostRule = true

[acme.dnsChallenge]
  provider = "duckdns"
  delayBeforeCheck = 0

[[acme.domains]]
   main = "abc.duckdns.org"
[[acme.domains]]
   main = "xyz.duckdns.org"  

whoami docker-compose.yml

version: '3'
services:
  whoami:
    image: "traefik/whoami"
    container_name: "simple-service"
    labels:
      - traefik.enable=true
      - traefik.frontend.rule=Host:xyz.duckdns.org
      - traefik.http.routers.whoami.entrypoints=web
      - traefik.docker.network=traefik_net

I was able to access traefik dashboard[on my domain abc.duckdns.org] page and I can see whoami service is visible.

But while accessing xyz.duckdns.org I'm getting 504 gateway timeout error.

Could some please help me to resolve this issue.