Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add disk_path to docker compose #135

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading