- Fix Docker Compose relative directory problem

- Added CONFIGDIR environment variable for docker compose
This commit is contained in:
Cyber MacGeddon 2024-09-09 21:43:36 +01:00
parent 0ae6feddb0
commit 3d2ab5408b
18 changed files with 79 additions and 73 deletions

View file

@ -78,7 +78,7 @@
(if std.length(container.volumes) > 0 then
{
volumes: [
"%s:%s" % [vol.volume.name, vol.mount]
"%s:%s" % [vol.volume.volid, vol.mount]
for vol in container.volumes
]
}
@ -126,6 +126,8 @@
name: name,
volid:: name,
with_size:: function(size) self + { size: size },
add:: function() {
@ -143,6 +145,8 @@
name: dir,
volid:: "${CONFIGDIR}/" + dir,
with_size:: function(size) self + { size: size },
add:: function() {
@ -157,6 +161,8 @@
name: dir,
volid:: "${CONFIGDIR}/" + dir,
with_size:: function(size) self + { size: size },
add:: function() {