From 139eb584b039be2cc171bcd9373225d02b5beb16 Mon Sep 17 00:00:00 2001 From: Daniel Cadenas Date: Wed, 8 Jan 2025 10:24:32 -0300 Subject: [PATCH] Fix strfry x-forwarded-for ip by using network_mode: host --- roles/strfry/templates/docker-compose.yml.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/strfry/templates/docker-compose.yml.tpl b/roles/strfry/templates/docker-compose.yml.tpl index 584816e..9187054 100644 --- a/roles/strfry/templates/docker-compose.yml.tpl +++ b/roles/strfry/templates/docker-compose.yml.tpl @@ -7,6 +7,7 @@ services: traefik: image: "traefik:v2.10" container_name: "traefik" + network_mode: "host" # Let's strfry get the real ip in x-forwarded-for instead of the internal docker ip command: - "--providers.docker=true" - "--providers.docker.exposedbydefault=false"