diff --git a/core/src/main/java/org/lflang/generator/docker/DockerComposeGenerator.java b/core/src/main/java/org/lflang/generator/docker/DockerComposeGenerator.java index 08b0df23c6..d67e890b24 100644 --- a/core/src/main/java/org/lflang/generator/docker/DockerComposeGenerator.java +++ b/core/src/main/java/org/lflang/generator/docker/DockerComposeGenerator.java @@ -62,6 +62,10 @@ protected String getServiceDescription(DockerData data) { context: "%s" container_name: "%s" tty: true + extra_hosts: + - "host.docker.internal:host-gateway" + environment: + LF_TELEGRAF_HOST_NAME: ${LF_TELEGRAF_HOST_NAME:-host.docker.internal} """ .formatted(getServiceName(data), getBuildContext(data), getContainerName(data)); }