I have set up a simple web server for my custom domain with traefik and docker (based on an article in c't), just for testing if all works. However, my problem is my router Fritzbox, which prevents request to the web2 container (web2.mydomain.de), and, instead shows a login page of the router. My docker-compose file looks like:
version: "3.7"
services:
traefik:
image: traefik:v2.0
command: --providers.docker
restart: always
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
- ./static.yml:/etc/traefik/traefik.yml
- ./dynamic.yml:/etc/traefik/dynamic/dynamic.yml
- ./acme.json:/etc/traefik/acme/acme.json
web2:
image: containous/whoami
labels:
- traefik.http.routers.web2.rule=Host(`web2.mydomain.de`) || ( Host(`mydomain.de`) && PathPrefix(`/web2`) )
- "traefik.http.routers.web2.tls.certResolver=default"
- "traefik.http.routers.web2.tls=true"
Things what I've also done:
- CNAME-Record configured: CNAME * xxxxxxxyyyyy.myfritz.net -
- DNS Rebind exception in fritzbox for my *.mydomain.de (for letting through incoming req./resp.)
- Port 80/443 opened in Fritzbox
- acme.sh is working (cert was generated)
So what is misconfigured?