Use mountpoint for temporary volume

This commit is contained in:
2025-12-22 10:14:06 +00:00
parent 06e6ed0f0a
commit 0c75a9450e
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -1,9 +1,9 @@
output "id" {
description = "ID of the temporary volume"
value = docker_volume.shared_volume.id
}
output "name" { output "name" {
description = "Name of the temporary volume" description = "Name of the temporary volume"
value = docker_volume.shared_volume.name value = docker_volume.shared_volume.name
}
output "host_path" {
description = "Host path of temporary volume mount"
value = docker_volume.shared_volume.mountpoint
} }
@@ -6,7 +6,7 @@ terraform {
} }
} }
module "penpot_temp_volume" { module "vol" {
source = "../../10-generic/docker-volumes" source = "../../10-generic/docker-volumes"
name = "penpot_temp" name = "penpot_temp"
} }
@@ -32,7 +32,7 @@ locals {
penpot_volumes = [ penpot_volumes = [
{ {
host_path = "${module.penpot_temp_volume.id}" host_path = "${module.vol.host_path}"
container_path = "/opt/data/assets" container_path = "/opt/data/assets"
read_only = false read_only = false
} }