traefik/docker-compose.yml aktualisiert

Fix for Container with Docker Network Mode = Host
This commit is contained in:
kevinheyer 2025-03-17 08:29:05 +00:00
parent 069e21adbd
commit fdf088d810

View file

@ -36,6 +36,8 @@ services:
- "traefik.http.routers.traefik-secure.tls.domains[0].main=${TRAEFIK_SAN_DOMAIN_0?error}"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.${TRAEFIK_SAN_DOMAIN_0?error}"
- "traefik.http.routers.traefik-secure.service=api@internal"
extra_hosts: # Fix for Container with Docker Network Mode = Host as mentioned here https://gist.github.com/gaieges/936bdf91e01e4cc782eb047e5873089b
- host.docker.internal:172.18.0.1 # Must match your Docker Network Gateway IP
networks:
traefik: