Hi Community
I am new to træfik and having some issues while using file configuration in my toml file
My issue is that I can hit http://ngnx.traefik.docker.localhost:8080/ and it works fine but when I try to hit
http://test.localhost:8080/, it times out with the exception - Gateway timeout
Down.com is accessible from browser.
Could you please suggest me, what I am doing wrong. Both docker compose and toml file contents are written below
docker-compose.yml file
version: "3"
services:
reverse-proxy:
image: traefik
ports:
- "8080:80"
- "8081:8081"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/traefik/traefik.toml:/etc/traefik/traefik.toml
ngnx:
image: nginx
ports:
- "8083:80"
networks:
default:
external:
name: proxy
traefik.toml file
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.dashboard]
address = ":8081"
[entryPoints.http]
address = ":80"
[api]
entrypoint="dashboard"
[web]
address = ":80"
[docker]
domain = "docker.localhost"
watch = true
network = "proxy"
[file]
[backends]
[backends.backend1]
[backends.backend1.servers]
[backends.backend1.servers.server0]
url = "http://down.com"
weight = 10
[frontends]
[frontends.frontend1]
entrypoints = ["http"]
backend = "backend1"
passHostHeader = true
[frontends.frontend1.routes]
[frontends.frontend1.routes.route0]
rule = "Host: test.localhost"