diff --git a/docker-compose/Makefile b/docker-compose/Makefile index ce7489db12e366cac98af2550f68a3afd3e17266..8e660436fb7ab61d86f704a00c5a386fcc25c401 100644 --- a/docker-compose/Makefile +++ b/docker-compose/Makefile @@ -14,7 +14,12 @@ ATTACH_COMPOSE_FILE_ARGS := $(foreach yml,$(filter-out tango.yml,$(COMPOSE_FILES NETWORK_MODE ?= tangonet # Host name through which others can reach our control interfaces -HOSTNAME ?= $(shell hostname -f) +ifneq (,$(wildcard /run/WSL)) + # Microsoft Windows Subsystem for Linux + HOSTNAME ?= host.docker.internal +else + HOSTNAME ?= $(shell hostname -f) +endif # If the first make argument is "start" or "stop"... ifeq (start,$(firstword $(MAKECMDGOALS)))