Greetings,
I have traefik set up similar to the docs:
version: "3.9"
services:
whoami:
image: "traefik/whoami"
labels:
- traefik.enable=true
- traefik.http.routers.whoami.tls=true
- traefik.http.routers.whoami.rule=Host("whoami.docker.localhost")
networks:
- net
I have another container that is on the same network, but it cannot resolve to the whoami
container as listed above whoami.docker.localhost
... it only resolves as simply whoami
. Is there a way for my second container to be able to resolve whoami.docker.localhost
?
Here is configuration for second container:
iam:
build:
context: .
dockerfile: ./Dockerfile.iam
restart: "always"
environment:
ENABLE_CORS: true
ASPNETCORE_ENVIRONMENT: local
labels:
- traefik.enable=true
- traefik.http.routers.iam.tls=true
- traefik.http.routers.iam.rule=Host("iam.docker.localhost")
networks:
- net