From 60440f794673635aaea7a68e5951c8159497b7af Mon Sep 17 00:00:00 2001 From: Wey Gu Date: Mon, 30 May 2022 12:12:15 +0800 Subject: [PATCH] Enable host.docker.internal to be working in Linux This works fine in macOS Docker Desktop, but not in Linux Docker Engine by default, this is not resolvable, to make it work in both cases, this is the mitigation, while the limitation is it has to be in docker-engine version v20.10 or newer. ref https://stackoverflow.com/questions/48546124/what-is-linux-equivalent-of-host-docker-internal/67158212#67158212 --- .../jaffle_superset/analyze/superset/docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meltano_projects/jaffle_superset/analyze/superset/docker-compose.yml b/meltano_projects/jaffle_superset/analyze/superset/docker-compose.yml index e712590..a15a0a0 100644 --- a/meltano_projects/jaffle_superset/analyze/superset/docker-compose.yml +++ b/meltano_projects/jaffle_superset/analyze/superset/docker-compose.yml @@ -54,6 +54,8 @@ services: - 8088:8088 depends_on: *superset-depends-on volumes: *superset-volumes + extra_hosts: + - "host.docker.internal:host-gateway" superset-init: image: *superset-image @@ -63,6 +65,8 @@ services: depends_on: *superset-depends-on user: "root" volumes: *superset-volumes + extra_hosts: + - "host.docker.internal:host-gateway" superset-worker: image: *superset-image @@ -73,6 +77,8 @@ services: depends_on: *superset-depends-on user: "root" volumes: *superset-volumes + extra_hosts: + - "host.docker.internal:host-gateway" superset-worker-beat: image: *superset-image @@ -83,6 +89,8 @@ services: depends_on: *superset-depends-on user: "root" volumes: *superset-volumes + extra_hosts: + - "host.docker.internal:host-gateway" volumes: superset_home: