From 18cce050e2665c4471e6cf5ce4669668b16e512a Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Tue, 19 Dec 2023 22:20:37 +0100 Subject: [PATCH] fix: exec docker compose in stackdir --- dc-ops | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dc-ops b/dc-ops index a130061..4db1d61 100755 --- a/dc-ops +++ b/dc-ops @@ -63,7 +63,8 @@ for stack in cfg["stacks"]: for composefile in composefiles: try: subprocess.run( - f"docker compose --file {stackdir}/{composefile} up --build --detach --remove-orphans", # noqa + f"docker compose --file {composefile} up --build --detach --remove-orphans", # noqa + cwd=stackdir, shell=True, text=True, )