Hello,
In my docker-compose file where I published a sql image I added this:
labels:
- “traefik.enable=true”
- “traefik.http.routers.trading.rule=Host(host1.domain1.org)”
- “traefik.http.routers.trading.tls=true”
- “traefik.http.routers.trading.tls.certresolver=lets-encrypt”
- “traefik.http.routers.trading.entrypoints=websecure”
ports:
- “1403:1433”
After this I added a new image with
labels:
- “traefik.enable=true”
- “traefik.http.routers.trading1.rule=Host(host2.domain1.org)”
- “traefik.http.routers.trading1.tls=true”
- “traefik.http.routers.trading1.tls.certresolver=lets-encrypt”
- “traefik.http.routers.trading1.entrypoints=websecure”
ports:
- “1402:1433”
Now with this configuration I expect to be able to connect to host2.domain1.org on port 1402
and to host1.domain1.org on port 1403, but connection to host2 on port 1403 should be refused.
Unfortunately host2 on port 1403 is responding. Any idea what I’m doing wrong? Thank you.