From 7fe54230a22c7cd08a8e3bb0ca57efd3d7317bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Garc=C3=ADa?= Date: Thu, 27 Jan 2022 12:40:50 +0100 Subject: [PATCH] fixed host.docker.internal does not work on linux --- docker-compose.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b828b9e..9deaeb1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -30,4 +30,6 @@ services: volumes: - ./shared/k6:/scripts environment: - - K6_OUT=influxdb=http://influxdb:8086/k6 \ No newline at end of file + - K6_OUT=influxdb=http://influxdb:8086/k6 + extra_hosts: + - "host.docker.internal:host-gateway"