First post here ,hope i'm doing it right ...
I've been trying to setup Traefik on my QNAP NAS for about 2 weeks ,
I disable the Qnap webserver ,
nothing is listening to port 80.
I think i passed all posts/guides i could find but still ... not working.
I need it basically a reverse proxy so when internally i could use
http :// myQnap.com
or using https from outside
So before jumping into deep water (which i actually did but didn't work).
I'd like to understand why Treafik is not working as expected on my setup.
I follow the beginner guide with simple setup:
docker-compose.yaml
version: '3.6'
networks:
traefik_proxy:
external: true
services:
traefik:
container_name: reverse-proxy
image: traefik
restart: always
command: --web --docker
domainname: xxxxx.myqnapcloud.com
networks:
- traefik_proxy
ports:
- 8888:8080
- 80:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /${PWD}/traefik/traefik.toml:/traefik.toml
- /${PWD}/traefik/acme.json:/acme.json
whoami:
image: emilevauge/whoami
networks:
- traefik_proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
treafik.toml
debug = true
logLevel = "DEBUG"
[accessLog]
filePath="/share/Avi/Dockers/traefik/log/traefik.log"
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "docker.localhost"
exposedByDefault = false
[web]
address = ":8888"
[web.auth.basic]
users = ["admin:$<somePass>."]
On window 10 using chrome:
--> 192.168.1.113:8888/dashboard/ - accessible and whoami present there
But when I'm trying to access via
[http: whoami.docker.localhost/
Also not for:
http 192.168.1.113:8080
But when running on Nas directly (via ssh)
[~] # curl -H Host:whoami.docker.localhost http://127.0.0.1
Hostname: 26d9c7890ded
IP: 127.0.0.1
IP: 172.29.0.2
GET / HTTP/1.1
Host: whoami.docker.localhost
User-Agent: curl/7.43.0
Accept: */*
Accept-Encoding: gzip
X-Forwarded-For: 172.29.0.1
X-Forwarded-Host: whoami.docker.localhost
X-Forwarded-Port: 80
X-Forwarded-Proto: http
X-Forwarded-Server: 5aaa4582d502
X-Real-Ip: 172.29.0.1
Why i'm not able access from Chrome ?
How can i tell Treafik is actually doing anything?
Ur help is highly appreciated !