From 8a2ab6c742ac1632df47637ab7f0a5cd2dfaa0eb Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Mon, 1 Jul 2024 15:47:23 -0700 Subject: [PATCH] Host mapping for convenience --- .../org/lflang/generator/docker/DockerComposeGenerator.java | 4 ++++ 1 file changed, 4 insertions(+) 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)); }