From 0c75a9450ef986fcfde43897e6eb87acf94dbf18 Mon Sep 17 00:00:00 2001 From: Jeroen Vijgen Date: Mon, 22 Dec 2025 10:14:06 +0000 Subject: [PATCH] Use mountpoint for temporary volume --- modules/10-generic/docker-volumes/outputs.tf | 10 +++++----- modules/30-services-software/penpot-service/main.tf | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/10-generic/docker-volumes/outputs.tf b/modules/10-generic/docker-volumes/outputs.tf index 2b0ccf4..1727439 100644 --- a/modules/10-generic/docker-volumes/outputs.tf +++ b/modules/10-generic/docker-volumes/outputs.tf @@ -1,9 +1,9 @@ -output "id" { - description = "ID of the temporary volume" - value = docker_volume.shared_volume.id -} - output "name" { description = "Name of the temporary volume" value = docker_volume.shared_volume.name +} + +output "host_path" { + description = "Host path of temporary volume mount" + value = docker_volume.shared_volume.mountpoint } \ No newline at end of file diff --git a/modules/30-services-software/penpot-service/main.tf b/modules/30-services-software/penpot-service/main.tf index 22958e0..c95b4fc 100644 --- a/modules/30-services-software/penpot-service/main.tf +++ b/modules/30-services-software/penpot-service/main.tf @@ -6,7 +6,7 @@ terraform { } } -module "penpot_temp_volume" { +module "vol" { source = "../../10-generic/docker-volumes" name = "penpot_temp" } @@ -32,7 +32,7 @@ locals { penpot_volumes = [ { - host_path = "${module.penpot_temp_volume.id}" + host_path = "${module.vol.host_path}" container_path = "/opt/data/assets" read_only = false }