From 56114e44314e607751acb5816c0ed3b3e7f178e0 Mon Sep 17 00:00:00 2001 From: Tom Straub Date: Wed, 12 Nov 2025 11:51:57 -0600 Subject: [PATCH] Add Docker network and extra hosts configuration These configurations worked for standing up TFE, however when a Run was created and an agent container spawned, it was not created in the same Docker Network as Terraform Enterprise. These changes were confirmed to work for Disk and External mode (I did not test for Active-Active). --- .../1.0.x/docs/enterprise/deploy/docker/index.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/terraform-enterprise/1.0.x/docs/enterprise/deploy/docker/index.mdx b/content/terraform-enterprise/1.0.x/docs/enterprise/deploy/docker/index.mdx index c0290c639c..de589c1346 100644 --- a/content/terraform-enterprise/1.0.x/docs/enterprise/deploy/docker/index.mdx +++ b/content/terraform-enterprise/1.0.x/docs/enterprise/deploy/docker/index.mdx @@ -181,6 +181,8 @@ services: TFE_TLS_KEY_FILE: "/etc/ssl/private/terraform-enterprise/key.pem" TFE_TLS_CA_BUNDLE_FILE: "/etc/ssl/private/terraform-enterprise/bundle.pem" TFE_IACT_SUBNETS: "" + TFE_RUN_PIPELINE_DOCKER_NETWORK: "terraform-enterprise_default" + TFE_RUN_PIPELINE_DOCKER_EXTRA_HOSTS: ":host-gateway" cap_add: - IPC_LOCK read_only: true @@ -230,6 +232,8 @@ services: TFE_TLS_KEY_FILE: "/etc/ssl/private/terraform-enterprise/key.pem" TFE_TLS_CA_BUNDLE_FILE: "/etc/ssl/private/terraform-enterprise/bundle.pem" TFE_IACT_SUBNETS: "" + TFE_RUN_PIPELINE_DOCKER_NETWORK: "terraform-enterprise_default" + TFE_RUN_PIPELINE_DOCKER_EXTRA_HOSTS: ":host-gateway" # Database settings. See the configuration reference for more settings. TFE_DATABASE_USER: "" @@ -290,6 +294,8 @@ services: TFE_TLS_KEY_FILE: "/etc/ssl/private/terraform-enterprise/key.pem" TFE_TLS_CA_BUNDLE_FILE: "/etc/ssl/private/terraform-enterprise/bundle.pem" TFE_IACT_SUBNETS: "" + TFE_RUN_PIPELINE_DOCKER_NETWORK: "terraform-enterprise_default" + TFE_RUN_PIPELINE_DOCKER_EXTRA_HOSTS: ":host-gateway" # Database settings. See the configuration reference for more settings. TFE_DATABASE_USER: ""