Skip to content

Commit

Permalink
add disk_path to docker compose (#135)
Browse files Browse the repository at this point in the history
* add disk_path to docker compose
  • Loading branch information
anniehedgpeth authored Nov 15, 2023
1 parent 2d1cbf2 commit 2934737
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/docker_compose_config/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ locals {
target = "/var/cache/tfe-task-worker/terraform"
},
local.disk ? [{
type = "volume"
source = "terraform-enterprise"
type = "bind"
source = var.disk_path
target = "/var/lib/terraform-enterprise"
}] : [],
])
Expand Down
6 changes: 6 additions & 0 deletions modules/docker_compose_config/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ variable "database_user" {
description = "PostgreSQL user. Required when TFE_OPERATIONAL_MODE is external or active-active."
}

variable "disk_path" {
default = null
description = "The pathname of the directory in which Terraform Enterprise will store data in Mounted Disk mode. Required when var.operational_mode is 'disk'."
type = string
}

variable "http_port" {
default = null
type = number
Expand Down

0 comments on commit 2934737

Please sign in to comment.