Use mountpoint for temporary volume
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user